blob: fcb8a82221fffe5a063c0177c4981b8d072c6f5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
fi
end: if [ "$COMMIT_ACTION" == DELETE ]; then
vtysh -c "configure terminal" -c "router ospf6" -c "no ospf6 router-id"
vtysh -c "configure terminal" -c "no router ospf6"
fi
|