summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/passive-interface/node.def
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-07 13:44:45 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-07 13:44:45 -0800
commita217f94c2264a681c97a7a76dabcacb8fce2a57e (patch)
tree007791d2c30994cbbd651c814407a74fa1733ab4 /templates/protocols/ospf/passive-interface/node.def
parentda9b9d773588e20b60b46538c46f7c4e14903935 (diff)
parentcae1b1454c0961e4a1733af93ce41d3db6f4b4b8 (diff)
downloadvyatta-cfg-quagga-a217f94c2264a681c97a7a76dabcacb8fce2a57e.tar.gz
vyatta-cfg-quagga-a217f94c2264a681c97a7a76dabcacb8fce2a57e.zip
Merge branch 'jenner' of suva.vyatta.com:/git/vyatta-cfg-quagga into jenner
Diffstat (limited to 'templates/protocols/ospf/passive-interface/node.def')
-rw-r--r--templates/protocols/ospf/passive-interface/node.def12
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/protocols/ospf/passive-interface/node.def b/templates/protocols/ospf/passive-interface/node.def
index 841bd340..9db0aca8 100644
--- a/templates/protocols/ospf/passive-interface/node.def
+++ b/templates/protocols/ospf/passive-interface/node.def
@@ -1,8 +1,13 @@
multi:
type: txt
help: Set to suppress routing updates on an interface
-syntax:expression: exec "${vyatta_sbindir}/vyatta-interfaces.pl --check $VAR(@)"
-allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all
+
+syntax:expression: exec "${vyatta_sbindir}/vyatta-interfaces.pl \
+ --check all --dev $VAR(@) 2> /dev/null || \
+ [ x$VAR(@) == xdefault ]"; \
+ "$VAR(@) is not 'default' or a known interface name"
+
+allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all && echo default
update: if [ -z $VAR(@) ]
then vyatta-vtysh -c "configure terminal" -c "router ospf" \
-c "passive-interface default";
@@ -15,3 +20,6 @@ delete: if [ -z $VAR(@) ]
else vyatta-vtysh -c "configure terminal" -c "router ospf" \
-c "no passive-interface $VAR(@)"
fi
+comp_help: possible completions:
+ <interface> Set an interface to be passive (i.e. suppress routing updates)
+ default Set default to suppress routing updates on all interfaces