Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2013 02:50:48 GMT
From:      Michael deMan <freebsd@deman.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/176223: feature request - ports/net/quagga
Message-ID:  <201302180250.r1I2omDY062169@red.freebsd.org>
Resent-Message-ID: <201302180300.r1I300kF066016@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176223
>Category:       ports
>Synopsis:       feature request - ports/net/quagga
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 18 03:00:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Michael deMan
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD <SNIP> 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
It would be useful to allow the integrated-vtysh-config for quagga.
Basically that allows all quagga daemon configuration to be in a single Quagga.conf and is an alternative way to manage the configuration files.

The startup script as it is does not support this because at the very end of a start the command 'vtysh -b' needs to be run to initialize the daemons.

>How-To-Repeat:
In a clean quagga installation - /usr/local/etc/quagga configuration directory...

Put the following single line in vtysh.conf:
service integrated-vtysh-config

Leave all daemon files (ospfd.conf, bgpd.conf, etc) empty.

Put some configuration info into Quagga.conf for testing...
password TestToSeeIfThisShows


start up quagga - /usr/local/etc/rc.d/quagga start
go into vtysh and do a 'show run' -  the line for TestToSeeIfThisShowswill not be there.
exit to command line
run 'vtysh -b'
go into vtysh and do a 'show run' -  the line for TestToSeeIfThisShows is there.




>Fix:
The diff below for /usr/local/etc/rc.d/quagga seems to work for me and provides a new /etc/rc.conf to enable this:
quagga_vtysh_boot="YES"



--- quagga.original.0.99.21	2013-02-17 16:48:26.000000000 -0800
+++ quagga	2013-02-17 18:31:58.000000000 -0800
@@ -72,6 +72,10 @@
 	    _rc_restart_done=false
 	    run_rc_command "$1" || ret=1
 	done
+        if checkyesno quagga_vtysh_boot; then
+            echo Booting for integrated-vtysh-config...
+            /usr/local/bin/vtysh -b
+        fi
 	return ${ret}
 }
 
@@ -82,6 +86,7 @@
 : ${quagga_enable="NO"}
 : ${quagga_flags="-d"}
 : ${quagga_daemons="zebra ripd ripngd ospfd ospf6d bgpd isisd"}
+: ${quagga_vtysh_boot="NO"}
 
 quagga_cmd=$1


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302180250.r1I2omDY062169>