diff options
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 |