summaryrefslogtreecommitdiff
path: root/templates/protocols/ospf/passive-interface-exclude/node.def
blob: 98820945e0394928ee95c3a83484bf87ebaf9798 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
multi:
type: txt
help: Set interface to exclude when using 'passive-interface default'

allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all 

syntax:expression: $VAR(../passive-interface/@) == "default"; \
  "passive-interface-excluded can only be used with 'passive-interface default'"

commit:expression: exec "/opt/vyatta/sbin/vyatta-interfaces.pl --dev=$VAR(@) --warn"

create: if [ -z $VAR(@) ] ; then
          echo "Error: must include interface";
          exit 1;
     	else  
          vyatta-vtysh -c "configure terminal" -c "router ospf" \
             -c "no passive-interface $VAR(@)"
	fi;

delete: vyatta-vtysh -c "configure terminal" -c "router ospf" \
          -c "passive-interface $VAR(@)";

comp_help: possible completions:
  <interface>     Set an interface to exclude from 'passive-interface default'