diff options
author | Daniil Baturin <daniil@baturin.org> | 2010-11-16 09:33:13 +0600 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2010-11-18 12:07:55 -0800 |
commit | d1bc0854513d794245bb53f4aa785abd4d70341f (patch) | |
tree | 070f0683a1209cf2b3a2c9be575a7b7edc10f72a | |
parent | b10c0f4e5d5fc4b435c559f7015e3875c069c98f (diff) | |
download | vyatta-cfg-quagga-d1bc0854513d794245bb53f4aa785abd4d70341f.tar.gz vyatta-cfg-quagga-d1bc0854513d794245bb53f4aa785abd4d70341f.zip |
OSPFv3 templates replaced to correspond new backend
15 files changed, 3 insertions, 118 deletions
diff --git a/templates/protocols/ospfv3/area/node.def b/templates/protocols/ospfv3/area/node.def index 73750abb..f3824397 100644 --- a/templates/protocols/ospfv3/area/node.def +++ b/templates/protocols/ospfv3/area/node.def @@ -1,6 +1,5 @@ tag: type: txt help: OSPFv3 Area -syntax:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --check-ospf-area $VAR(@)"; "Invalid OSFPv3 area \"$VAR(@)\" " -val_help: u32; OSPFv3 area in decimal notation +syntax:expression: exec "/opt/vyatta/sbin/vyatta-ospfv3.pl --check-area --area=$VAR(@)" val_help: ipv4; OSPFv3 area in dotted decimal notation diff --git a/templates/protocols/ospfv3/area/node.tag/.filter-list/node.tag/node.def b/templates/protocols/ospfv3/area/node.tag/.filter-list/node.tag/node.def index 21fd7948..873e2435 100644 --- a/templates/protocols/ospfv3/area/node.tag/.filter-list/node.tag/node.def +++ b/templates/protocols/ospfv3/area/node.tag/.filter-list/node.tag/node.def @@ -2,9 +2,3 @@ tag: type: txt help: Set direction of filter (in|out) allowed: echo "in out" -create:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"area $VAR(../../@) filter-list $VAR(../@) $VAR(@) \"; " -delete:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"no area $VAR(../../@) filter-list $VAR(../@) $VAR(@) \"; " diff --git a/templates/protocols/ospfv3/area/node.tag/export-list/node.def b/templates/protocols/ospfv3/area/node.tag/export-list/node.def index a27ca264..4e603e7d 100644 --- a/templates/protocols/ospfv3/area/node.tag/export-list/node.def +++ b/templates/protocols/ospfv3/area/node.tag/export-list/node.def @@ -1,8 +1,2 @@ type: txt help: Name of export-list -create:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"area $VAR(../@) export-list $VAR(@) \"; " -delete:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"no area $VAR(../@) export-list $VAR(@) \"; " diff --git a/templates/protocols/ospfv3/area/node.tag/import-list/node.def b/templates/protocols/ospfv3/area/node.tag/import-list/node.def index cc689ab2..43feacca 100644 --- a/templates/protocols/ospfv3/area/node.tag/import-list/node.def +++ b/templates/protocols/ospfv3/area/node.tag/import-list/node.def @@ -1,8 +1,2 @@ type: txt help: Name of import-list -create:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"area $VAR(../@) import-list $VAR(@) \"; " -delete:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6 \" \ - -c \"no area $VAR(../@) import-list $VAR(@) \"; " diff --git a/templates/protocols/ospfv3/area/node.tag/interface/node.def b/templates/protocols/ospfv3/area/node.tag/interface/node.def index 046b78d6..9263778c 100644 --- a/templates/protocols/ospfv3/area/node.tag/interface/node.def +++ b/templates/protocols/ospfv3/area/node.tag/interface/node.def @@ -2,10 +2,4 @@ multi: type: txt help: OSPFv3 area interface -create: vtysh -c "configure terminal" -c "router ospf6" \ - -c "interface $VAR(@) area $VAR(../@)" - -delete: vtysh -c "configure terminal" -c "router ospf6" \ - -c "no interface $VAR(@) area $VAR(../@)" - allowed: ${vyatta_sbindir}/vyatta-interfaces.pl --show all diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.def index 4b594cd9..6249e511 100644 --- a/templates/protocols/ospfv3/area/node.tag/range/node.def +++ b/templates/protocols/ospfv3/area/node.tag/range/node.def @@ -2,19 +2,3 @@ tag: type: ipv6net help: Specify IPv6 prefix (border routers only) syntax:expression: exec "${vyatta_sbindir}/check_prefix_boundary $VAR(@)" - -delete: touch /tmp/ospf6-range.$PPID - -end: if [ -f /tmp/ospf6-range.$PPID ]; then - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "no area $VAR(../@) range $VAR(@)"; - rm /tmp/ospf6-range.$PPID; - else - vtysh --noerror -c "configure terminal" \ - -c "router ospf6" \ - -c "no area $VAR(../@) range $VAR(@)"; - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "area $VAR(../@) range $VAR(@)"; - fi; diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def index 81be1db0..29e0d619 100644 --- a/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def +++ b/templates/protocols/ospfv3/area/node.tag/range/node.tag/advertise/node.def @@ -1,7 +1,2 @@ help: Advertise this range -create:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6\" \ - -c \"area $VAR(../../@) range $VAR(../@) advertise\"; " -delete:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6\" \ - -c \"no area $VAR(../../@) range $VAR(../@) advertise\"; " + diff --git a/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def b/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def index d0a74ecd..bb524e98 100644 --- a/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def +++ b/templates/protocols/ospfv3/area/node.tag/range/node.tag/not-advertise/node.def @@ -1,7 +1 @@ help: Do not advertise this range -create:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6\" \ - -c \"area $VAR(../../@) range $VAR(../@) not-advertise\"; " -delete:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6\" \ - -c \"no area $VAR(../../@) range $VAR(../@) not-advertise\"; " diff --git a/templates/protocols/ospfv3/node.def b/templates/protocols/ospfv3/node.def index 72e1886f..0776b936 100644 --- a/templates/protocols/ospfv3/node.def +++ b/templates/protocols/ospfv3/node.def @@ -1,4 +1,3 @@ priority: 640 help: IPv6 Open Shortest Path First protocol (OSPFv3) parameters -create: vtysh -c "configure terminal" -c "router ospf6" -delete: vtysh -c "configure terminal" -c "no router ospf6" +end: ${vyatta_sbindir}/vyatta-ospfv3.pl --main diff --git a/templates/protocols/ospfv3/parameters/router-id/node.def b/templates/protocols/ospfv3/parameters/router-id/node.def index f0a02436..659cccf1 100644 --- a/templates/protocols/ospfv3/parameters/router-id/node.def +++ b/templates/protocols/ospfv3/parameters/router-id/node.def @@ -1,5 +1,2 @@ type: ipv4 help: Router identifier -update:expression: "vtysh -c \"configure terminal\" \ - -c \"router ospf6\" \ - -c \"router-id $VAR(@)\" " diff --git a/templates/protocols/ospfv3/redistribute/bgp/node.def b/templates/protocols/ospfv3/redistribute/bgp/node.def index 3541a9a4..c18804bc 100644 --- a/templates/protocols/ospfv3/redistribute/bgp/node.def +++ b/templates/protocols/ospfv3/redistribute/bgp/node.def @@ -1,13 +1 @@ help: Redistribute bgp routes - -end: vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "no redistribute bgp"; - if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then - if [ -n "$VAR(./route-map/@)" ]; then - COND="route-map $VAR(./route-map/@)"; - fi; - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "redistribute bgp $COND"; - fi; diff --git a/templates/protocols/ospfv3/redistribute/connected/node.def b/templates/protocols/ospfv3/redistribute/connected/node.def index d9b43cb0..37a8bd6b 100644 --- a/templates/protocols/ospfv3/redistribute/connected/node.def +++ b/templates/protocols/ospfv3/redistribute/connected/node.def @@ -1,13 +1 @@ help: Redistribute connected routes - -end: vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "no redistribute connected"; - if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then - if [ -n "$VAR(./route-map/@)" ]; then - COND="route-map $VAR(./route-map/@)"; - fi; - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "redistribute connected $COND"; - fi; diff --git a/templates/protocols/ospfv3/redistribute/kernel/node.def b/templates/protocols/ospfv3/redistribute/kernel/node.def index 78fe7d36..316ca3b8 100644 --- a/templates/protocols/ospfv3/redistribute/kernel/node.def +++ b/templates/protocols/ospfv3/redistribute/kernel/node.def @@ -1,13 +1,2 @@ help: Redistribute kernel routes -end: vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "no redistribute kernel"; - if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then - if [ -n "$VAR(./route-map/@)" ]; then - COND="route-map $VAR(./route-map/@)"; - fi; - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "redistribute kernel $COND"; - fi; diff --git a/templates/protocols/ospfv3/redistribute/ripng/node.def b/templates/protocols/ospfv3/redistribute/ripng/node.def index f418999a..0aba8758 100644 --- a/templates/protocols/ospfv3/redistribute/ripng/node.def +++ b/templates/protocols/ospfv3/redistribute/ripng/node.def @@ -1,13 +1 @@ help: Redistribute RIPNG routes - -end: vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "no redistribute ripng"; - if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then - if [ -n "$VAR(./route-map/@)" ]; then - COND="route-map $VAR(./route-map/@)"; - fi; - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "redistribute ripng $COND"; - fi; diff --git a/templates/protocols/ospfv3/redistribute/static/node.def b/templates/protocols/ospfv3/redistribute/static/node.def index d82d5f05..fd4c7b04 100644 --- a/templates/protocols/ospfv3/redistribute/static/node.def +++ b/templates/protocols/ospfv3/redistribute/static/node.def @@ -1,13 +1 @@ help: Redistribute static routes - -end: vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "no redistribute static"; - if [ "$COMMIT_ACTION" = "SET" -o "$COMMIT_ACTION" = "ACTIVE" ]; then - if [ -n "$VAR(./route-map/@)" ]; then - COND="route-map $VAR(./route-map/@)"; - fi; - vtysh -c "configure terminal" \ - -c "router ospf6" \ - -c "redistribute static $COND"; - fi; |