diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-02 14:26:45 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-02 14:26:45 -0800 |
commit | a4f5dbef77793280e1dc9a5bb068d71b1067ea8f (patch) | |
tree | a70b4fb3de6eb46b751d9e51b18dd3c547eb70aa /templates/protocols/rip/interface/node.def | |
parent | b5cf8d7971394dcad7c855363ea18f3913223914 (diff) | |
download | vyatta-cfg-quagga-a4f5dbef77793280e1dc9a5bb068d71b1067ea8f.tar.gz vyatta-cfg-quagga-a4f5dbef77793280e1dc9a5bb068d71b1067ea8f.zip |
RIP allow any interface type
Not restricted to just ethernet, RIP should work over bonding etc..
Diffstat (limited to 'templates/protocols/rip/interface/node.def')
-rw-r--r-- | templates/protocols/rip/interface/node.def | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/templates/protocols/rip/interface/node.def b/templates/protocols/rip/interface/node.def index 8a1e560e..1cbbdaac 100644 --- a/templates/protocols/rip/interface/node.def +++ b/templates/protocols/rip/interface/node.def @@ -6,8 +6,6 @@ syntax:expression: exec " \ echo ethernet interface $VAR(@) doesn\\'t exist on this system ; \ exit 1 ; \ fi ; " -create:expression: "vyatta-vtysh -c \"configure terminal\" -c \"router rip\" -c \"network $VAR(@)\" " -delete:expression: "vyatta-vtysh -c \"configure terminal\" -c \"router rip\" -c \"no network $VAR(@)\" " -allowed: local -a array; - array=( /sys/class/net/{eth,vmnet}* ) ; - echo -n ${array[@]##*/} +create:vyatta-vtysh -c "configure terminal" -c "router rip" -c "network $VAR(@)" +delete:vyatta-vtysh -c "configure terminal" -c "router rip" -c "no network $VAR(@)" +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all |