diff options
author | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-05 10:46:00 -0800 |
---|---|---|
committer | Stig Thormodsrud <stig@io.vyatta.com> | 2009-03-05 10:46:00 -0800 |
commit | 45ba3f141d489d99f16d468fa95a8a779f490595 (patch) | |
tree | 5b3df35f3d1de168f22f97fb7f3dceb5ac3063b2 /templates/protocols/ospf | |
parent | 8afc28e1b8a50cd75b56556ee3d63aeeecbe3127 (diff) | |
download | vyatta-cfg-quagga-45ba3f141d489d99f16d468fa95a8a779f490595.tar.gz vyatta-cfg-quagga-45ba3f141d489d99f16d468fa95a8a779f490595.zip |
Fix 'passive-interface' to allow interface or 'default'.
Diffstat (limited to 'templates/protocols/ospf')
-rw-r--r-- | templates/protocols/ospf/passive-interface/node.def | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/protocols/ospf/passive-interface/node.def b/templates/protocols/ospf/passive-interface/node.def index 841bd340..6a0decfc 100644 --- a/templates/protocols/ospf/passive-interface/node.def +++ b/templates/protocols/ospf/passive-interface/node.def @@ -1,8 +1,12 @@ 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 $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 +19,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 |