diff options
author | An-Cheng Huang <ancheng@ancheng-vm.localdomain> | 2007-10-01 14:17:06 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@ancheng-vm.localdomain> | 2007-10-01 14:17:06 -0700 |
commit | cda784ae0d8e3d4c08daa3b4225156f34122b4c2 (patch) | |
tree | b6d62e7dabec6ea45a09a6ee2f805f079c25c920 /templates/policy | |
parent | cfa368bbc1d4c55c42c60838e04fc523625932b7 (diff) | |
download | vyatta-cfg-quagga-cda784ae0d8e3d4c08daa3b4225156f34122b4c2.tar.gz vyatta-cfg-quagga-cda784ae0d8e3d4c08daa3b4225156f34122b4c2.zip |
fixed dependency and quagga path.
Diffstat (limited to 'templates/policy')
24 files changed, 68 insertions, 68 deletions
diff --git a/templates/policy/prefix-list/node.tag/rule/node.def b/templates/policy/prefix-list/node.tag/rule/node.def index 7750cba9..55c1e70c 100644 --- a/templates/policy/prefix-list/node.tag/rule/node.def +++ b/templates/policy/prefix-list/node.tag/rule/node.def @@ -9,7 +9,7 @@ delete: "touch /tmp/protocols-$(../@)-$(@).\\$PPID \ if [ -n \"$(./le/@)\" ] && [ $(./le/@) -ne 32 ]; then \ COND=\"\\$COND le $(./le/@) \"; \ fi; \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"no ip prefix-list $(../@) seq $(@) $(./action/@) $(./prefix/@) \\$COND \" " end: "LEN=`echo $(@) | awk -F/ '{ print \\$2 }'` ; \ if [ -n \"$(./ge/@)\" ]; then \ @@ -29,7 +29,7 @@ end: "LEN=`echo $(@) | awk -F/ '{ print \\$2 }'` ; \ if [ -f \"/tmp/protocols-$(../@)-$(@).\\$PPID\" ]; then \ rm -f \"protocols-$(../@)-$(@).\\$PPID\" ; \ else \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"ip prefix-list $(../@) seq $(@) $(./action/@) $(./prefix/@) \\$COND \" ; \ fi ; \ exit 0 ; " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/action/node.def b/templates/policy/route-map/node.tag/rule/node.tag/action/node.def index f594fdb6..7908bd5b 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/action/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/action/node.def @@ -1,6 +1,6 @@ type: txt help: "action to take on prefixes matching this rule" syntax: $(@) in "permit", "deny"; "route-map $(../../@) $(@) $(../@) action: must be permit or deny" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(@) $(../@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(@) $(../@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" -c \"no route-map $(../../@) $(@) $(../@)\" " +create: "/usr/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(@) $(../@)\" " +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(@) $(../@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"no route-map $(../../@) $(@) $(../@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/call/node.def b/templates/policy/route-map/node.tag/rule/node.tag/call/node.def index bfddaec9..6ef93c25 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/call/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/call/node.def @@ -2,9 +2,9 @@ type: txt help: "Target route-map name" syntax: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy route-map $(@)\"; "route-map $(@) doesn't exist" commit: $(../action/@); "must define an action for route-map $(../../@) rule $(../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ -c \"call $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ -c \"call $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"route-map $(../../@) $(../action/@) $(../@)\" \ -c \"no call \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/as-path/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/as-path/node.def index 1054bdb5..57ade6c1 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/as-path/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/as-path/node.def @@ -2,12 +2,12 @@ type: txt help: "Match BGP AS path list" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy as-path-list $(@)\"; "aspath-list $(@) doesn't exist" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match as-path $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match as-path $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match as-path $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/community/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/community/node.def index 64c477ad..15a2be66 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/community/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/community/node.def @@ -4,7 +4,7 @@ end: "if [ -z \"$(./community-list/)\" ]; then \ echo You must configure a community-list ; \ exit 1 ; \ fi ; \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match community \" ; \ if [ -f \"/tmp/policy-route-map-$(../../../@)-$(../../action/@)-$(../../@)-match-community.\\$PPID\" ]; then \ @@ -13,7 +13,7 @@ end: "if [ -z \"$(./community-list/)\" ]; then \ if [ -n \"$(./exact-match/)\" ]; then \ COND=\"exact-match \"; \ fi ; \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match community $(./community-list/@) \\$COND\" ; \ fi; " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def index 2db98b6c..232e39eb 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/interface/node.def @@ -7,12 +7,12 @@ syntax: exec " \ echo $(@) doesn\\'t exist on this system ; \ exit 1 ; \ fi ; " -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match interface $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match interface $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match interface $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/metric/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/metric/node.def index 6b7dcab7..dafc37e2 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/metric/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/metric/node.def @@ -1,13 +1,13 @@ type: u32; "route-map $(../../../@) $(../../action/@) $(../../@) metric: must be an integer" help: "Match metric of route" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match metric $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match metric $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match metric $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/origin/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/origin/node.def index 84ecc6e4..e04d5a77 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/origin/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/origin/node.def @@ -2,13 +2,13 @@ type: txt help: "BGP origin code" syntax: $(@) in "egp", "igp", "incomplete"; "origin must be egp, igp, or incomplete" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match origin $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match origin $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match origin $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/peer/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/peer/node.def index a71801c7..28b4661f 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/peer/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/peer/node.def @@ -2,13 +2,13 @@ type: txt help: "Match peer address" syntax: exec "/opt/vyatta/sbin/vyatta_policy.pl --check-peer-syntax $(@)"; "peer must be either an IP or local" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match peer $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match peer $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match peer \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/match/tag/node.def b/templates/policy/route-map/node.tag/rule/node.tag/match/tag/node.def index 14d0c0f9..8cd5d642 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/match/tag/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/match/tag/node.def @@ -2,13 +2,13 @@ type: u32 help: "Match tag of route" syntax: $(@) >= 1 && $(@) <= 65535; "tag must be between 1 and 65535" commit: $(../../action/@); "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match tag $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match tag $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no match tag $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def b/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def index d4fc4dfc..22c1d123 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/on-match/goto/node.def @@ -3,12 +3,12 @@ help: "Goto sequence number" syntax: $(../next/@) != ""; "you can set only goto or next" syntax: $(@) >= 1 && $(@) <= 65535; "tag must be between 1 and 65535" commit: $(../../action/@); "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"on-match goto $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"on-match goto $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no on-match goto $(@)\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def b/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def index eaffea3c..d270b863 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/on-match/next/node.def @@ -1,13 +1,13 @@ help: "Goto next sequence number" syntax: $(../goto/@) != ""; "you can set only goto or next" commit: $(../../action/@); "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"on-match next \" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"on-match next \" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no on-match next \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/node.def index f86cfe5d..28a564a5 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/aggregator/node.def @@ -4,13 +4,13 @@ end: "if [ -z \"$(./as/)\" ] || [ -z \"$(./ip/)\" ]; then \ echo You must configure as and ip ; \ exit 1 ; \ fi ; \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set aggregator \" ; \ if [ -f \"/tmp/policy-route-map-$(../../../@)-$(../../action/@)-$(../../@)-set-aggregator.\\$PPID\" ]; then \ rm -rf /tmp/policy-route-map-$(../../../@)-$(../../action/@)-$(../../@)-set-aggregator.\\$PPID; \ else \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"match community $(./as/@) $(./ip/@)\" ; \ fi; " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def index 9e602cb2..5f18167a 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/as-path-prepend/node.def @@ -1,12 +1,12 @@ type: txt; help: "Prepend string for a BGP AS-path attribute" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set as-path prepend $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set as-path prepend $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set as-path prepend \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/atomic-aggregate/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/atomic-aggregate/node.def index 233ee4a5..9b32cbec 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/atomic-aggregate/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/atomic-aggregate/node.def @@ -1,11 +1,11 @@ help: "BGP atomic aggregate attribute" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set atomic-aggregate\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set atomic-aggregate\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set atomic-aggregate\" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def index 613897fd..78491435 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/comm-list/node.def @@ -4,7 +4,7 @@ end: "if [ -z \"$(./comm-list/)\" ]; then \ echo You must configure a comm-list ; \ exit 1 ; \ fi ; \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set comm-list \" ; \ if [ -f \"/tmp/policy-route-map-$(../../../@)-$(../../action/@)-$(../../@)-set-comm-list.\\$PPID\" ]; then \ @@ -13,7 +13,7 @@ end: "if [ -z \"$(./comm-list/)\" ]; then \ if [ -n \"$(./delete/)\" ]; then \ COND=\"delete\" ; \ fi ; \ - /opt/vyatta/bin/vtysh -c \"configure terminal\" \ + /usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set comm-list $(./comm-list/@) \\$COND\" ; \ fi; " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def index ccac5e10..ada7fd99 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/community/node.def @@ -2,12 +2,12 @@ type: txt help: "Community number in aa:nn format or local-AS|no-advertise|no-export|internet|additive or none" # TODO: check syntax commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set community $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set community $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set community \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/ip-next-hop/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/ip-next-hop/node.def index ff440e80..4d5efb2c 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/ip-next-hop/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/ip-next-hop/node.def @@ -2,12 +2,12 @@ type: ipv4 help: "Next hop IP address" # TODO: can also set to peer for BGP commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set ip next-hop $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set ip next-hop $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set ip next-hop \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def index 929adaf1..e54fd2c6 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/local-preference/node.def @@ -1,12 +1,12 @@ type: u32 help: "BGP local preference path attribute" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set local-preference $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set local-preference $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set local-preference \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/metric/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/metric/node.def index 47a19621..3a580a77 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/metric/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/metric/node.def @@ -2,12 +2,12 @@ type: txt help: "Metric value for destination routing protocol" syntax: exec "if [ -n `echo $(@) | sed 's/[+0123456789]*-*//g'` ]; then exit 1; fi; "; "metric must be an integer with an optional +/- prepend" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set metric $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set metric $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set metric \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/origin/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/origin/node.def index 46c33586..10a9de68 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/origin/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/origin/node.def @@ -2,12 +2,12 @@ type: txt help: "BGP origin code" syntax: $(@) in "igp", "egp", "incomplete"; "origin must be one of igp, egp, or incomplete" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set origin $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set origin $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set origin \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/originator-id/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/originator-id/node.def index ae749c15..05dec8a3 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/originator-id/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/originator-id/node.def @@ -1,12 +1,12 @@ type: ipv4 help: "BGP originator ID attribute" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set originator-id $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set originator-id $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set originator-id \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/tag/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/tag/node.def index a0812733..d694df35 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/tag/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/tag/node.def @@ -2,12 +2,12 @@ type: u32 help: "Tag value for routing protocol" syntax: $(@) >= 1 && $(@) <= 65535; "tag must be between 1 and 65535" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set tag $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set tag $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set tag \" " diff --git a/templates/policy/route-map/node.tag/rule/node.tag/set/weight/node.def b/templates/policy/route-map/node.tag/rule/node.tag/set/weight/node.def index 34fed745..b899a45b 100644 --- a/templates/policy/route-map/node.tag/rule/node.tag/set/weight/node.def +++ b/templates/policy/route-map/node.tag/rule/node.tag/set/weight/node.def @@ -1,12 +1,12 @@ type: u32 help: "BGP weight for routing table" commit: $(../../action/@) != ""; "You must specify an action for route-map $(../../../@) rule $(../../@)" -create: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +create: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set weight $(@)\" " -update: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +update: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"set weight $(@)\" " -delete: "/opt/vyatta/bin/vtysh -c \"configure terminal\" \ +delete: "/usr/bin/vtysh -c \"configure terminal\" \ -c \"route-map $(../../../@) $(../../action/@) $(../../@)\" \ -c \"no set weight \" " |