From 0c64f868993e3e277ca292d5ca516278dc8676eb Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 19 Nov 2009 22:57:35 -0500 Subject: add openospfd package for my testing (which probably is completely broken right now) disable the frickin Frickin package since it's never worked --- config/openospfd/openospfd.xml | 137 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 config/openospfd/openospfd.xml (limited to 'config') diff --git a/config/openospfd/openospfd.xml b/config/openospfd/openospfd.xml new file mode 100644 index 00000000..e583b31c --- /dev/null +++ b/config/openospfd/openospfd.xml @@ -0,0 +1,137 @@ + + ospfd + 0.1 + ospfd: Settings + pkg_edit.php?xml=ospfd.xml&id=0 + + ospfd + Modify ospfd settings. +
Services
+ ospfd.xml + /pkg_edit.php?xml=ospfd.xml&id=0 +
+ + ospfd + ospfd.sh + ospfd + + installedpackages->package->$packagename->configuration->settings + + + Router ID + Router ID + Specify the Router ID. + input + + + Area + Area + OSPF area for this instance of OSPFd. + input + + + Update FIB (Routing table) + enable + Enables the updating of the host routing table + checkbox + + + Listening Interface + interface + Enter the desired participating interface here. + interfaces_selection + + + Metric + Metric + Metric for this OSPF interface (leave blank for default). + input + + + Enable MD5 password for this OSPFd interface (default no) + enable + Enables the use of an MD5 password to on this instance + checkbox + + + Password + Password + Password for this OSPF interface. + input + + + Redistribute connected subnets + enable + Enables the redistribution of connected networks (Default no) + checkbox + + + Redistribute default route + enable + Enables the redistribution of a default route to this device (Default no) + checkbox + + + Router Priority + Router priority for DR elections + Router priority when participating in elections for DR (Default 1) Valid range is 0-255. 0 will cause the router to not participate in election. + input + + + Hello Interval + Hello Interval in seconds + Hello Interval this OSPF interface in seconds (Default 10). + input + + + Retransmit Interval + Retransmit Interval + Retransmit Interval this OSPF interface in seconds (Default 5). + input + + + Dead Timer + Dead Timer + Dead Timer for this OSPF interface in seconds (Default 40). + input + + + Redistribute static + enable + Enables the redistribution of static routes + checkbox + + + + function sync_package_ospfd() { + conf_mount_rw(); + config_lock(); + global $config; + foreach($config['installedpackages']['ospfd']['config'] as $cf) { + if($cf['host'] != "") { + $start .= "/usr/local/sbin/ospfd "; + $start .= " -n {$cf['host']}"; + if($cf['port'] != "") + $start .= ":{$cf['port']}"; + if($cf['direction'] != "") + $start .= " -S {$cf['direction']}"; + if($cf['version'] != "") + $start .= " -v {$cf['version']}"; + write_rcfile(array( + "file" => "ospfd.sh", + "start" => $start, + "stop" => "/usr/bin/killall ospfd" + ) + ); + restart_service("ospfd"); + break; + } + } + conf_mount_ro(); + config_unlock(); + } + + + sync_package_ospfd(); + +
-- cgit v1.2.3