diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-02 14:25:36 -0800 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-03-02 14:25:36 -0800 |
commit | b5cf8d7971394dcad7c855363ea18f3913223914 (patch) | |
tree | 78c4ce1d7f0c93419b5fea6994778e6e71ebd21c /templates | |
parent | e60c5259d3eec2e0c394534b06aea76e61fbb3e3 (diff) | |
download | vyatta-cfg-quagga-b5cf8d7971394dcad7c855363ea18f3913223914.tar.gz vyatta-cfg-quagga-b5cf8d7971394dcad7c855363ea18f3913223914.zip |
Use new syntax and allow any interface
Not restricted to just ethernet.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/protocols/ospfv3/area/node.tag/interface/node.def | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/templates/protocols/ospfv3/area/node.tag/interface/node.def b/templates/protocols/ospfv3/area/node.tag/interface/node.def index 384a225f..a45cfbff 100644 --- a/templates/protocols/ospfv3/area/node.tag/interface/node.def +++ b/templates/protocols/ospfv3/area/node.tag/interface/node.def @@ -1,17 +1,9 @@ type: txt help: Set OSPFv3 area interface -create:expression: "vyatta-vtysh --noerror -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"no interface $VAR(@) area $VAR(../@) \"; " -create:expression: "vyatta-vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"interface $VAR(@) area $VAR(../@) \"; " -delete:expression: "vyatta-vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"no interface $VAR(@) area $VAR(../@) \"; " - -allowed: for dev in /sys/class/net/*; - do if [[ -d $dev && -L $dev/device ]] - then echo -n ${dev##*/} " " - fi - done +create:vyatta-vtysh --noerror -c "configure terminal" -c "router ospf6" \ + -c "no interface $VAR(@) area $VAR(../@)" + vyatta-vtysh -c "configure terminal" -c "router ospf6" \ + -c "interface $VAR(@) area $VAR(../@)" +delete:vyatta-vtysh -c "configure terminal" -c "router ospf6" \ + -c "no interface $VAR(@) area $VAR(../@)" +allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all |