blob: 9ec052223d27d63d50cd2e9af83bdbf0132f5dcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
tag:
type: ipv4net
help: Set source network
syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)"
commit:expression: $VAR(./distance/) != ""; "Must specify distance for network $VAR(@)"
delete:expression: "touch /tmp/rip-dist.$PPID"
end:expression: "if [ -n \"$VAR(./access-list/@)\" ]; then \
ACL=\"$VAR(./access-list/@)\"; \
fi; \
if [ -f \"/tmp/rip-dist.$PPID\" ]; then \
dist=$(cat /tmp/rip-network-distance.$PPID); \
vyatta-vtysh -c \"configure terminal\" -c \"router rip\" \
-c \"no distance $dist $VAR(@) $ACL \" ;
rm -f \"/tmp/rip-dist.$PPID\";
else \
vyatta-vtysh -c \"configure terminal\" -c \"router rip\" \
-c \"distance $VAR(./distance/@) $VAR(@) $ACL \" ;
fi; "
|