summaryrefslogtreecommitdiff
path: root/templates/protocols/ospfv3/node.def
blob: 4bf54837b48070f05da9aae19e5cc1207af78714 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
priority: 640
help: IPv6 Open Shortest Path First protocol (OSPFv3) parameters
begin: if [ "$COMMIT_ACTION" != DELETE ]; then
         if [ -n "$VAR(parameters/router-id/@)" ]; then
           vtysh -c "configure terminal" -c "router ospf6" \
                 -c "ospf6 router-id $VAR(parameters/router-id/@)"
         else
           vtysh -c "configure terminal" -c "router ospf6" \
                 -c "no ospf6 router-id"
         fi
         vtysh -d ospf6d -c 'sh run' > /opt/vyatta/etc/quagga/ospf6d.conf
         sudo vtysh --writeconfig --noerror
       fi
end: if [ "$COMMIT_ACTION" == DELETE ]; then
       vtysh -c "configure terminal" -c "router ospf6" -c "no router-id"
       vtysh -c "configure terminal" -c "no router ospf6"
     fi