From b5cf8d7971394dcad7c855363ea18f3913223914 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 2 Mar 2009 14:25:36 -0800 Subject: Use new syntax and allow any interface Not restricted to just ethernet. --- .../ospfv3/area/node.tag/interface/node.def | 22 +++++++--------------- 1 file 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 -- cgit v1.2.3