blob: cf33ba111f012039417c2d4a1988f294eb185ed8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
priority: 620
help: Open Shortest Path First protocol (OSPF) parameters
begin: if [ "$COMMIT_ACTION" != DELETE ]; then
if [ -n "$VAR(parameters/router-id/@)" ]; then
vtysh -c "configure terminal" -c "router ospf" \
-c "ospf router-id $VAR(parameters/router-id/@)"
else
vtysh -c "configure terminal" -c "router ospf" \
-c "no ospf router-id"
fi
fi
end: if [ "$COMMIT_ACTION" == DELETE ]; then
vtysh -c "configure terminal" -c "router ospf" -c "no ospf router-id"
vtysh -c "configure terminal" -c "no router ospf"
rm -f /opt/vyatta/etc/quagga/ospfd.conf
else
vtysh -d ospfd -c 'sh run' > /opt/vyatta/etc/quagga/ospfd.conf
sudo vtysh --writeconfig --noerror
fi
|