From 1c10060b35829629ecedc1a1e653f4538db5574f Mon Sep 17 00:00:00 2001 From: Robert Bays Date: Thu, 29 Nov 2007 17:59:09 -0800 Subject: rename bgp nodes. --- .../bgp/node.tag/bgp/always-compare-med/node.def | 5 ----- .../bgp/node.tag/bgp/bestpath/as-path/confed/node.def | 6 ------ .../bgp/node.tag/bgp/bestpath/as-path/ignore/node.def | 5 ----- .../protocols/bgp/node.tag/bgp/bestpath/as-path/node.def | 1 - .../bgp/node.tag/bgp/bestpath/compare-routerid/node.def | 6 ------ .../bgp/node.tag/bgp/bestpath/med/confed/node.def | 6 ------ .../node.tag/bgp/bestpath/med/missing-as-worst/node.def | 6 ------ .../protocols/bgp/node.tag/bgp/bestpath/med/node.def | 1 - templates/protocols/bgp/node.tag/bgp/bestpath/node.def | 1 - .../node.tag/bgp/client-to-client-reflection/node.def | 6 ------ templates/protocols/bgp/node.tag/bgp/cluster-id/node.def | 6 ------ .../bgp/node.tag/bgp/confederation/identifier/node.def | 7 ------- .../protocols/bgp/node.tag/bgp/confederation/node.def | 1 - .../bgp/node.tag/bgp/confederation/peers/node.def | 8 -------- .../bgp/node.tag/bgp/dampening/half-life/node.def | 3 --- .../node.tag/bgp/dampening/max-suppress-time/node.def | 5 ----- templates/protocols/bgp/node.tag/bgp/dampening/node.def | 12 ------------ .../protocols/bgp/node.tag/bgp/dampening/re-use/node.def | 5 ----- .../node.tag/bgp/dampening/start-suppress-time/node.def | 5 ----- .../bgp/node.tag/bgp/default/local-pref/node.def | 6 ------ .../bgp/node.tag/bgp/default/no-ipv4-unicast/node.def | 5 ----- templates/protocols/bgp/node.tag/bgp/default/node.def | 1 - .../bgp/node.tag/bgp/deterministic-med/node.def | 5 ----- .../protocols/bgp/node.tag/bgp/enforce-first-as/node.def | 5 ----- .../protocols/bgp/node.tag/bgp/graceful-restart/node.def | 1 - .../bgp/graceful-restart/stalepath-time/node.def | 7 ------- .../bgp/node.tag/bgp/log-neighbor-changes/node.def | 5 ----- .../bgp/node.tag/bgp/network/import-check/node.def | 5 ----- templates/protocols/bgp/node.tag/bgp/network/node.def | 1 - .../bgp/node.tag/bgp/no-fast-external-failover/node.def | 5 ----- templates/protocols/bgp/node.tag/bgp/node.def | 1 - templates/protocols/bgp/node.tag/bgp/router-id/node.def | 6 ------ templates/protocols/bgp/node.tag/bgp/scan-time/node.def | 7 ------- .../neighbor/node.tag/distribute-list/export/node.def | 16 ++++++++++++++++ .../neighbor/node.tag/distribute-list/import/node.def | 16 ++++++++++++++++ .../neighbor/node.tag/distribute-list/in/node.def | 16 ---------------- .../neighbor/node.tag/distribute-list/out/node.def | 16 ---------------- .../neighbor/node.tag/filter-list/export/node.def | 16 ++++++++++++++++ .../neighbor/node.tag/filter-list/import/node.def | 16 ++++++++++++++++ .../node.tag/neighbor/node.tag/filter-list/in/node.def | 16 ---------------- .../node.tag/neighbor/node.tag/filter-list/out/node.def | 16 ---------------- .../neighbor/node.tag/prefix-list/export/node.def | 16 ++++++++++++++++ .../neighbor/node.tag/prefix-list/import/node.def | 16 ++++++++++++++++ .../node.tag/neighbor/node.tag/prefix-list/in/node.def | 16 ---------------- .../node.tag/neighbor/node.tag/prefix-list/out/node.def | 16 ---------------- .../bgp/node.tag/parameters/always-compare-med/node.def | 5 +++++ .../node.tag/parameters/bestpath/as-path/confed/node.def | 6 ++++++ .../node.tag/parameters/bestpath/as-path/ignore/node.def | 5 +++++ .../bgp/node.tag/parameters/bestpath/as-path/node.def | 1 + .../parameters/bestpath/compare-routerid/node.def | 6 ++++++ .../bgp/node.tag/parameters/bestpath/med/confed/node.def | 6 ++++++ .../parameters/bestpath/med/missing-as-worst/node.def | 6 ++++++ .../bgp/node.tag/parameters/bestpath/med/node.def | 1 + .../protocols/bgp/node.tag/parameters/bestpath/node.def | 1 + .../bgp/node.tag/parameters/cluster-id/node.def | 6 ++++++ .../parameters/confederation/identifier/node.def | 7 +++++++ .../bgp/node.tag/parameters/confederation/node.def | 1 + .../bgp/node.tag/parameters/confederation/peers/node.def | 8 ++++++++ .../bgp/node.tag/parameters/dampening/half-life/node.def | 3 +++ .../parameters/dampening/max-suppress-time/node.def | 5 +++++ .../protocols/bgp/node.tag/parameters/dampening/node.def | 12 ++++++++++++ .../bgp/node.tag/parameters/dampening/re-use/node.def | 5 +++++ .../parameters/dampening/start-suppress-time/node.def | 5 +++++ .../bgp/node.tag/parameters/default/local-pref/node.def | 6 ++++++ .../node.tag/parameters/default/no-ipv4-unicast/node.def | 5 +++++ .../protocols/bgp/node.tag/parameters/default/node.def | 1 + .../bgp/node.tag/parameters/deterministic-med/node.def | 5 +++++ .../bgp/node.tag/parameters/enforce-first-as/node.def | 5 +++++ .../bgp/node.tag/parameters/graceful-restart/node.def | 1 + .../parameters/graceful-restart/stalepath-time/node.def | 7 +++++++ .../node.tag/parameters/log-neighbor-changes/node.def | 5 +++++ .../node.tag/parameters/network/import-check/node.def | 5 +++++ .../protocols/bgp/node.tag/parameters/network/node.def | 1 + .../parameters/no-client-to-client-reflection/node.def | 5 +++++ .../parameters/no-fast-external-failover/node.def | 5 +++++ templates/protocols/bgp/node.tag/parameters/node.def | 1 + .../protocols/bgp/node.tag/parameters/router-id/node.def | 6 ++++++ .../protocols/bgp/node.tag/parameters/scan-time/node.def | 7 +++++++ 78 files changed, 250 insertions(+), 251 deletions(-) delete mode 100644 templates/protocols/bgp/node.tag/bgp/always-compare-med/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/as-path/confed/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/as-path/ignore/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/as-path/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/compare-routerid/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/med/confed/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/med/missing-as-worst/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/med/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/bestpath/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/client-to-client-reflection/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/cluster-id/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/confederation/identifier/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/confederation/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/confederation/peers/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/dampening/half-life/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/dampening/max-suppress-time/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/dampening/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/dampening/re-use/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/dampening/start-suppress-time/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/default/local-pref/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/default/no-ipv4-unicast/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/default/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/deterministic-med/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/enforce-first-as/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/graceful-restart/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/graceful-restart/stalepath-time/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/log-neighbor-changes/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/network/import-check/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/network/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/no-fast-external-failover/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/router-id/node.def delete mode 100644 templates/protocols/bgp/node.tag/bgp/scan-time/node.def create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def delete mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/in/node.def delete mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/out/node.def create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/export/node.def create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/import/node.def delete mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/in/node.def delete mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/out/node.def create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/export/node.def create mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/import/node.def delete mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def delete mode 100644 templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/out/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/always-compare-med/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/as-path/confed/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/as-path/ignore/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/as-path/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/compare-routerid/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/med/confed/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/med/missing-as-worst/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/med/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/bestpath/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/cluster-id/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/confederation/identifier/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/confederation/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/confederation/peers/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/dampening/half-life/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/dampening/max-suppress-time/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/dampening/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/dampening/re-use/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/dampening/start-suppress-time/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/default/local-pref/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/default/no-ipv4-unicast/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/default/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/deterministic-med/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/enforce-first-as/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/graceful-restart/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/graceful-restart/stalepath-time/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/log-neighbor-changes/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/network/import-check/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/network/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/no-client-to-client-reflection/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/no-fast-external-failover/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/router-id/node.def create mode 100644 templates/protocols/bgp/node.tag/parameters/scan-time/node.def (limited to 'templates') diff --git a/templates/protocols/bgp/node.tag/bgp/always-compare-med/node.def b/templates/protocols/bgp/node.tag/bgp/always-compare-med/node.def deleted file mode 100644 index 59cf867e..00000000 --- a/templates/protocols/bgp/node.tag/bgp/always-compare-med/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Allow comparing MED from different neighbors" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp always-compare-med\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp always-compare-med\" " diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/confed/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/confed/node.def deleted file mode 100644 index 03adee5e..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/confed/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: "Compare path lengths including confederation sets & sequences in selecting a route" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"bgp bestpath as-path confed \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"no bgp bestpath as-path confed \" " - diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/ignore/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/ignore/node.def deleted file mode 100644 index dd346995..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/ignore/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Ignore as-path length in selecting a route" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"bgp bestpath as-path ignore \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"no bgp bestpath as-path ignore \" " diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/node.def deleted file mode 100644 index 72b50839..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/as-path/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "AS-path attribute" diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/compare-routerid/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/compare-routerid/node.def deleted file mode 100644 index 8c8f598c..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/compare-routerid/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: "Compare router-id for identical EBGP paths" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp bestpath compare-routerid \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp bestpath compare-routerid \" " - diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/med/confed/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/med/confed/node.def deleted file mode 100644 index 219d73d7..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/med/confed/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: "Compare MED among confederation paths" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"bgp bestpath med confed \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"no bgp bestpath med confed \" " - diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/med/missing-as-worst/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/med/missing-as-worst/node.def deleted file mode 100644 index 0f9316be..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/med/missing-as-worst/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: "Treat missing MED as the least preferred one" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"bgp bestpath med missing-as-worst \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ - -c \"no bgp bestpath med missing-as-worst \" " - diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/med/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/med/node.def deleted file mode 100644 index 350270bb..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/med/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "MED attribute" diff --git a/templates/protocols/bgp/node.tag/bgp/bestpath/node.def b/templates/protocols/bgp/node.tag/bgp/bestpath/node.def deleted file mode 100644 index b4a1bbe7..00000000 --- a/templates/protocols/bgp/node.tag/bgp/bestpath/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "Change the default bestpath selection" diff --git a/templates/protocols/bgp/node.tag/bgp/client-to-client-reflection/node.def b/templates/protocols/bgp/node.tag/bgp/client-to-client-reflection/node.def deleted file mode 100644 index 1f56d8ff..00000000 --- a/templates/protocols/bgp/node.tag/bgp/client-to-client-reflection/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: "Configure client to client route reflection" -# TODO: not showing up in vyatta. Probably needs another setting to be applied. -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp client-to-client reflection \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp client-to-client reflection \" " diff --git a/templates/protocols/bgp/node.tag/bgp/cluster-id/node.def b/templates/protocols/bgp/node.tag/bgp/cluster-id/node.def deleted file mode 100644 index 492a8e83..00000000 --- a/templates/protocols/bgp/node.tag/bgp/cluster-id/node.def +++ /dev/null @@ -1,6 +0,0 @@ -type: ipv4 -help: "Configure route-reflector cluster-id\n" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp cluster-id $(@)\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp cluster-id \" " diff --git a/templates/protocols/bgp/node.tag/bgp/confederation/identifier/node.def b/templates/protocols/bgp/node.tag/bgp/confederation/identifier/node.def deleted file mode 100644 index 826d32c5..00000000 --- a/templates/protocols/bgp/node.tag/bgp/confederation/identifier/node.def +++ /dev/null @@ -1,7 +0,0 @@ -type: u32 -help: "Configure confederation AS id" -syntax: $(@) >= 1 && $(@) <= 65535; "confederation AS id must be between 1 and 65535" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp confederation identifier $(@)\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp confederation identifier \" " diff --git a/templates/protocols/bgp/node.tag/bgp/confederation/node.def b/templates/protocols/bgp/node.tag/bgp/confederation/node.def deleted file mode 100644 index 272c946c..00000000 --- a/templates/protocols/bgp/node.tag/bgp/confederation/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "AS confederation parameters" diff --git a/templates/protocols/bgp/node.tag/bgp/confederation/peers/node.def b/templates/protocols/bgp/node.tag/bgp/confederation/peers/node.def deleted file mode 100644 index 38042e17..00000000 --- a/templates/protocols/bgp/node.tag/bgp/confederation/peers/node.def +++ /dev/null @@ -1,8 +0,0 @@ -multi: -type: u32 -help: "Peer ASs in BGP confederation" -syntax: $(@) >= 1 && $(@) <= 65535; "confederation AS id must be between 1 and 65535" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp confederation peers $(@)\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp confederation peers $(@)\" " diff --git a/templates/protocols/bgp/node.tag/bgp/dampening/half-life/node.def b/templates/protocols/bgp/node.tag/bgp/dampening/half-life/node.def deleted file mode 100644 index aa710acf..00000000 --- a/templates/protocols/bgp/node.tag/bgp/dampening/half-life/node.def +++ /dev/null @@ -1,3 +0,0 @@ -type: u32 -help: "Half-life time for the penalty" -syntax: $(@) >= 1 && $(@) <= 45; "Half-life penalty must be between 1 and 45" diff --git a/templates/protocols/bgp/node.tag/bgp/dampening/max-suppress-time/node.def b/templates/protocols/bgp/node.tag/bgp/dampening/max-suppress-time/node.def deleted file mode 100644 index a4f59b8f..00000000 --- a/templates/protocols/bgp/node.tag/bgp/dampening/max-suppress-time/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: "Maximum duration to suppress a stable route" -syntax: $(@) >= 1 && $(@) <= 255; "Max-suppress-time must be between 1 and 255" -commit: $(../re-use/) != ""; "Re-use value must be set" -commit: $(../start-suppress-time/) != ""; "Start-suppress-time must be set" diff --git a/templates/protocols/bgp/node.tag/bgp/dampening/node.def b/templates/protocols/bgp/node.tag/bgp/dampening/node.def deleted file mode 100644 index 987c30c4..00000000 --- a/templates/protocols/bgp/node.tag/bgp/dampening/node.def +++ /dev/null @@ -1,12 +0,0 @@ -help: "Enable route-flap dampening" -delete: "touch /tmp/bgp-dampening.\\$PPID" -end: "sh -c \" - /usr/bin/vtysh -c \\\"configure terminal\\\" -c \\\"router bgp $(../../@)\\\" \ - -c \\\"no bgp dampening\\\" ; \ - if [ -f \\\"/tmp/bgp-dampening.\\\\$PPID\\\" ]; then \ - rm -f \\\"/tmp/bgp-dampening.\\\\$PPID\\\" ; \ - else \ - /usr/bin/vtysh -c \\\"configure terminal\\\" -c \\\"router bgp $(../../@)\\\" \ - -c \\\"bgp dampening $(./half-life/@) $(./re-use/@) $(./start-suppress-time/@) $(./max-suppress-time/@)\\\" ; \ - fi ; \ - \" " diff --git a/templates/protocols/bgp/node.tag/bgp/dampening/re-use/node.def b/templates/protocols/bgp/node.tag/bgp/dampening/re-use/node.def deleted file mode 100644 index 83b3e246..00000000 --- a/templates/protocols/bgp/node.tag/bgp/dampening/re-use/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: "Value to start reusing a route" -syntax: $(@) >= 1 && $(@) <= 20000; "Re-use value must be between 1 and 20000" -commit: $(../start-suppress-time/) != ""; "Start-suppress-time must be set" -commit: $(../max-suppress-time/) != ""; "Max-suppress-time must be set" diff --git a/templates/protocols/bgp/node.tag/bgp/dampening/start-suppress-time/node.def b/templates/protocols/bgp/node.tag/bgp/dampening/start-suppress-time/node.def deleted file mode 100644 index 17d5a67a..00000000 --- a/templates/protocols/bgp/node.tag/bgp/dampening/start-suppress-time/node.def +++ /dev/null @@ -1,5 +0,0 @@ -type: u32 -help: "Value to start suppressing a route" -syntax: $(@) >= 1 && $(@) <= 20000; "Start-suppress-time must be between 1 and 20000" -commit: $(../re-use/) != ""; "Re-use value must be set" -commit: $(../max-suppress-time/) != ""; "Max-suppress-time must be set" diff --git a/templates/protocols/bgp/node.tag/bgp/default/local-pref/node.def b/templates/protocols/bgp/node.tag/bgp/default/local-pref/node.def deleted file mode 100644 index c8c5bb44..00000000 --- a/templates/protocols/bgp/node.tag/bgp/default/local-pref/node.def +++ /dev/null @@ -1,6 +0,0 @@ -type: u32 -help: "Local preference (higher=more preferred)" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp default local-preference $(@)\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp default local-preference\" " diff --git a/templates/protocols/bgp/node.tag/bgp/default/no-ipv4-unicast/node.def b/templates/protocols/bgp/node.tag/bgp/default/no-ipv4-unicast/node.def deleted file mode 100644 index 66f77ded..00000000 --- a/templates/protocols/bgp/node.tag/bgp/default/no-ipv4-unicast/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Deactivate IPv4 unicast for a peer by default" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp default ipv4-unicast\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp default ipv4-unicast\" " diff --git a/templates/protocols/bgp/node.tag/bgp/default/node.def b/templates/protocols/bgp/node.tag/bgp/default/node.def deleted file mode 100644 index f1c90ec3..00000000 --- a/templates/protocols/bgp/node.tag/bgp/default/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "Configure BGP defaults" diff --git a/templates/protocols/bgp/node.tag/bgp/deterministic-med/node.def b/templates/protocols/bgp/node.tag/bgp/deterministic-med/node.def deleted file mode 100644 index 2f816856..00000000 --- a/templates/protocols/bgp/node.tag/bgp/deterministic-med/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Pick the best-MED path among paths advertised from the neighboring AS" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp deterministic-med \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp deterministic-med \" " diff --git a/templates/protocols/bgp/node.tag/bgp/enforce-first-as/node.def b/templates/protocols/bgp/node.tag/bgp/enforce-first-as/node.def deleted file mode 100644 index 9263395a..00000000 --- a/templates/protocols/bgp/node.tag/bgp/enforce-first-as/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Enforce the first AS for EBGP routes" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp enforce-first-as \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp enforce-first-as \" " diff --git a/templates/protocols/bgp/node.tag/bgp/graceful-restart/node.def b/templates/protocols/bgp/node.tag/bgp/graceful-restart/node.def deleted file mode 100644 index 1e849462..00000000 --- a/templates/protocols/bgp/node.tag/bgp/graceful-restart/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "Graceful restart capability parameters" diff --git a/templates/protocols/bgp/node.tag/bgp/graceful-restart/stalepath-time/node.def b/templates/protocols/bgp/node.tag/bgp/graceful-restart/stalepath-time/node.def deleted file mode 100644 index 8c28175e..00000000 --- a/templates/protocols/bgp/node.tag/bgp/graceful-restart/stalepath-time/node.def +++ /dev/null @@ -1,7 +0,0 @@ -type: u32 -help: "Set the max time in seconds to hold onto restarting peer's stale paths" -syntax: $(@) >= 1 && $(@) <= 3600; "stalepath-time must be between 1 and 3600" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp graceful-restart stalepath-time $(@) \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp graceful-restart stalepath-time \" " diff --git a/templates/protocols/bgp/node.tag/bgp/log-neighbor-changes/node.def b/templates/protocols/bgp/node.tag/bgp/log-neighbor-changes/node.def deleted file mode 100644 index d4a64a82..00000000 --- a/templates/protocols/bgp/node.tag/bgp/log-neighbor-changes/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Log neighbor up/down and reset reason" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp log-neighbor-changes \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp log-neighbor-changes \" " diff --git a/templates/protocols/bgp/node.tag/bgp/network/import-check/node.def b/templates/protocols/bgp/node.tag/bgp/network/import-check/node.def deleted file mode 100644 index 0c6ced5d..00000000 --- a/templates/protocols/bgp/node.tag/bgp/network/import-check/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Check BGP network route exists in IGP" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"bgp network import-check \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no bgp network import-check \" " diff --git a/templates/protocols/bgp/node.tag/bgp/network/node.def b/templates/protocols/bgp/node.tag/bgp/network/node.def deleted file mode 100644 index 2db2693f..00000000 --- a/templates/protocols/bgp/node.tag/bgp/network/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "Network parameter options" diff --git a/templates/protocols/bgp/node.tag/bgp/no-fast-external-failover/node.def b/templates/protocols/bgp/node.tag/bgp/no-fast-external-failover/node.def deleted file mode 100644 index a53214e0..00000000 --- a/templates/protocols/bgp/node.tag/bgp/no-fast-external-failover/node.def +++ /dev/null @@ -1,5 +0,0 @@ -help: "Immediately reset session if a link to a directly connected external peer goes down" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp fast-external-failover \" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp fast-external-failover \" " diff --git a/templates/protocols/bgp/node.tag/bgp/node.def b/templates/protocols/bgp/node.tag/bgp/node.def deleted file mode 100644 index b23668f8..00000000 --- a/templates/protocols/bgp/node.tag/bgp/node.def +++ /dev/null @@ -1 +0,0 @@ -help: "Configure BGP parameters" diff --git a/templates/protocols/bgp/node.tag/bgp/router-id/node.def b/templates/protocols/bgp/node.tag/bgp/router-id/node.def deleted file mode 100644 index 645ecb6f..00000000 --- a/templates/protocols/bgp/node.tag/bgp/router-id/node.def +++ /dev/null @@ -1,6 +0,0 @@ -type: ipv4 -help: "Override configured router identifier" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp router-id $(@)\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp router-id \" " diff --git a/templates/protocols/bgp/node.tag/bgp/scan-time/node.def b/templates/protocols/bgp/node.tag/bgp/scan-time/node.def deleted file mode 100644 index f98dd34a..00000000 --- a/templates/protocols/bgp/node.tag/bgp/scan-time/node.def +++ /dev/null @@ -1,7 +0,0 @@ -type: u32 -syntax: $(@) >= 5 && $(@) <= 60; "scan-time must be between 5 and 60 seconds" -help: "Configure background scanner interval" -update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"bgp scan-time $(@)\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ - -c \"no bgp scan-time \" " diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def new file mode 100644 index 00000000..7d70fae2 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/export/node.def @@ -0,0 +1,16 @@ +type: u32 +help: "Filter outgoing updates" +commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" +commit: $(../../peer-group/) == ""; "You can't set a distribute-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" +commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" ";"access-list $(@) doesn't exist" +update: "if [ -n \"$(../../remote-as/@)\" ]; then \ + peer=\"remote-as $(../../remote-as/@)\"; \ + else \ + peer=\"peer-group $(../../peer-group/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"neighbor $(../../@) \\$peer\" \ + -c \"neighbor $(../../@) distribute-list $(@) out\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no neighbor $(../../@) distribute-list $(@) out\" " + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def new file mode 100644 index 00000000..32f406c5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/import/node.def @@ -0,0 +1,16 @@ +type: u32 +help: "Filter incoming updates" +commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" +commit: $(../../peer-group/) == ""; "You can't set a distribute-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" +commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" ";"access-list $(@) doesn't exist" +update: "if [ -n \"$(../../remote-as/@)\" ]; then \ + peer=\"remote-as $(../../remote-as/@)\"; \ + else \ + peer=\"peer-group $(../../peer-group/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"neighbor $(../../@) \\$peer\" \ + -c \"neighbor $(../../@) distribute-list $(@) in\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no neighbor $(../../@) distribute-list $(@) in\" " + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/in/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/in/node.def deleted file mode 100644 index 32f406c5..00000000 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/in/node.def +++ /dev/null @@ -1,16 +0,0 @@ -type: u32 -help: "Filter incoming updates" -commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" -commit: $(../../peer-group/) == ""; "You can't set a distribute-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" ";"access-list $(@) doesn't exist" -update: "if [ -n \"$(../../remote-as/@)\" ]; then \ - peer=\"remote-as $(../../remote-as/@)\"; \ - else \ - peer=\"peer-group $(../../peer-group/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"neighbor $(../../@) \\$peer\" \ - -c \"neighbor $(../../@) distribute-list $(@) in\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no neighbor $(../../@) distribute-list $(@) in\" " - diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/out/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/out/node.def deleted file mode 100644 index 7d70fae2..00000000 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/distribute-list/out/node.def +++ /dev/null @@ -1,16 +0,0 @@ -type: u32 -help: "Filter outgoing updates" -commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" -commit: $(../../peer-group/) == ""; "You can't set a distribute-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy access-list $(@)\" ";"access-list $(@) doesn't exist" -update: "if [ -n \"$(../../remote-as/@)\" ]; then \ - peer=\"remote-as $(../../remote-as/@)\"; \ - else \ - peer=\"peer-group $(../../peer-group/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"neighbor $(../../@) \\$peer\" \ - -c \"neighbor $(../../@) distribute-list $(@) out\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no neighbor $(../../@) distribute-list $(@) out\" " - diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/export/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/export/node.def new file mode 100644 index 00000000..07945538 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/export/node.def @@ -0,0 +1,16 @@ +type: txt +help: "Filter outgoing updates" +commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" +commit: $(../../peer-group/) == ""; "You can't set a filter-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" +commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy as-path-list $(@)\" ";"as-path-list $(@) doesn't exist" +update: "if [ -n \"$(../../remote-as/@)\" ]; then \ + peer=\"remote-as $(../../remote-as/@)\"; \ + else \ + peer=\"peer-group $(../../peer-group/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"neighbor $(../../@) \\$peer\" \ + -c \"neighbor $(../../@) filter-list $(@) out\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no neighbor $(../../@) filter-list $(@) out\" " + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/import/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/import/node.def new file mode 100644 index 00000000..44618b3b --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/import/node.def @@ -0,0 +1,16 @@ +type: txt +help: "Filter incoming updates based on AS path" +commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" +commit: $(../../peer-group/) == ""; "You can't set a filter-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" +commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy as-path-list $(@)\" ";"as-path-list $(@) doesn't exist" +update: "if [ -n \"$(../../remote-as/@)\" ]; then \ + peer=\"remote-as $(../../remote-as/@)\"; \ + else \ + peer=\"peer-group $(../../peer-group/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"neighbor $(../../@) \\$peer\" \ + -c \"neighbor $(../../@) filter-list $(@) in\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no neighbor $(../../@) filter-list $(@) in\" " + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/in/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/in/node.def deleted file mode 100644 index 44618b3b..00000000 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/in/node.def +++ /dev/null @@ -1,16 +0,0 @@ -type: txt -help: "Filter incoming updates based on AS path" -commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" -commit: $(../../peer-group/) == ""; "You can't set a filter-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy as-path-list $(@)\" ";"as-path-list $(@) doesn't exist" -update: "if [ -n \"$(../../remote-as/@)\" ]; then \ - peer=\"remote-as $(../../remote-as/@)\"; \ - else \ - peer=\"peer-group $(../../peer-group/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"neighbor $(../../@) \\$peer\" \ - -c \"neighbor $(../../@) filter-list $(@) in\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no neighbor $(../../@) filter-list $(@) in\" " - diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/out/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/out/node.def deleted file mode 100644 index 07945538..00000000 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/filter-list/out/node.def +++ /dev/null @@ -1,16 +0,0 @@ -type: txt -help: "Filter outgoing updates" -commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" -commit: $(../../peer-group/) == ""; "You can't set a filter-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy as-path-list $(@)\" ";"as-path-list $(@) doesn't exist" -update: "if [ -n \"$(../../remote-as/@)\" ]; then \ - peer=\"remote-as $(../../remote-as/@)\"; \ - else \ - peer=\"peer-group $(../../peer-group/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"neighbor $(../../@) \\$peer\" \ - -c \"neighbor $(../../@) filter-list $(@) out\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no neighbor $(../../@) filter-list $(@) out\" " - diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/export/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/export/node.def new file mode 100644 index 00000000..c2277ea9 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/export/node.def @@ -0,0 +1,16 @@ +type: txt +help: "Filter outgoing updates" +commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" +commit: $(../../peer-group/) == ""; "You can't set a prefix-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" +commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" ";"prefix-list $(@) doesn't exist" +update: "if [ -n \"$(../../remote-as/@)\" ]; then \ + peer=\"remote-as $(../../remote-as/@)\"; \ + else \ + peer=\"peer-group $(../../peer-group/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"neighbor $(../../@) \\$peer\" \ + -c \"neighbor $(../../@) prefix-list $(@) out\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no neighbor $(../../@) prefix-list $(@) out\" " + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/import/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/import/node.def new file mode 100644 index 00000000..1d320e55 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/import/node.def @@ -0,0 +1,16 @@ +type: txt +help: "Filter incoming updates" +commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" +commit: $(../../peer-group/) == ""; "You can't set a prefix-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" +commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" ";"prefix-list $(@) doesn't exist" +update: "if [ -n \"$(../../remote-as/@)\" ]; then \ + peer=\"remote-as $(../../remote-as/@)\"; \ + else \ + peer=\"peer-group $(../../peer-group/@)\"; \ + fi; \ + /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"neighbor $(../../@) \\$peer\" \ + -c \"neighbor $(../../@) prefix-list $(@) in\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no neighbor $(../../@) prefix-list $(@) in\" " + diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def deleted file mode 100644 index 1d320e55..00000000 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/in/node.def +++ /dev/null @@ -1,16 +0,0 @@ -type: txt -help: "Filter incoming updates" -commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" -commit: $(../../peer-group/) == ""; "You can't set a prefix-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" ";"prefix-list $(@) doesn't exist" -update: "if [ -n \"$(../../remote-as/@)\" ]; then \ - peer=\"remote-as $(../../remote-as/@)\"; \ - else \ - peer=\"peer-group $(../../peer-group/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"neighbor $(../../@) \\$peer\" \ - -c \"neighbor $(../../@) prefix-list $(@) in\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no neighbor $(../../@) prefix-list $(@) in\" " - diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/out/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/out/node.def deleted file mode 100644 index c2277ea9..00000000 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/prefix-list/out/node.def +++ /dev/null @@ -1,16 +0,0 @@ -type: txt -help: "Filter outgoing updates" -commit: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-as --as $(../../../@) --neighbor $(../../@)" -commit: $(../../peer-group/) == ""; "You can't set a prefix-list for neighbor $(../../@) in peer-group $(../../peer-group/@)" -commit: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"policy prefix-list $(@)\" ";"prefix-list $(@) doesn't exist" -update: "if [ -n \"$(../../remote-as/@)\" ]; then \ - peer=\"remote-as $(../../remote-as/@)\"; \ - else \ - peer=\"peer-group $(../../peer-group/@)\"; \ - fi; \ - /usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"neighbor $(../../@) \\$peer\" \ - -c \"neighbor $(../../@) prefix-list $(@) out\" " -delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ - -c \"no neighbor $(../../@) prefix-list $(@) out\" " - diff --git a/templates/protocols/bgp/node.tag/parameters/always-compare-med/node.def b/templates/protocols/bgp/node.tag/parameters/always-compare-med/node.def new file mode 100644 index 00000000..59cf867e --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/always-compare-med/node.def @@ -0,0 +1,5 @@ +help: "Allow comparing MED from different neighbors" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp always-compare-med\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp always-compare-med\" " diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/confed/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/confed/node.def new file mode 100644 index 00000000..03adee5e --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/confed/node.def @@ -0,0 +1,6 @@ +help: "Compare path lengths including confederation sets & sequences in selecting a route" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"bgp bestpath as-path confed \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"no bgp bestpath as-path confed \" " + diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/ignore/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/ignore/node.def new file mode 100644 index 00000000..dd346995 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/ignore/node.def @@ -0,0 +1,5 @@ +help: "Ignore as-path length in selecting a route" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"bgp bestpath as-path ignore \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"no bgp bestpath as-path ignore \" " diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/node.def new file mode 100644 index 00000000..72b50839 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/as-path/node.def @@ -0,0 +1 @@ +help: "AS-path attribute" diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/compare-routerid/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/compare-routerid/node.def new file mode 100644 index 00000000..8c8f598c --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/compare-routerid/node.def @@ -0,0 +1,6 @@ +help: "Compare router-id for identical EBGP paths" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp bestpath compare-routerid \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp bestpath compare-routerid \" " + diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/med/confed/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/med/confed/node.def new file mode 100644 index 00000000..219d73d7 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/med/confed/node.def @@ -0,0 +1,6 @@ +help: "Compare MED among confederation paths" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"bgp bestpath med confed \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"no bgp bestpath med confed \" " + diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/med/missing-as-worst/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/med/missing-as-worst/node.def new file mode 100644 index 00000000..0f9316be --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/med/missing-as-worst/node.def @@ -0,0 +1,6 @@ +help: "Treat missing MED as the least preferred one" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"bgp bestpath med missing-as-worst \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../../@)\" \ + -c \"no bgp bestpath med missing-as-worst \" " + diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/med/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/med/node.def new file mode 100644 index 00000000..350270bb --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/med/node.def @@ -0,0 +1 @@ +help: "MED attribute" diff --git a/templates/protocols/bgp/node.tag/parameters/bestpath/node.def b/templates/protocols/bgp/node.tag/parameters/bestpath/node.def new file mode 100644 index 00000000..b4a1bbe7 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/bestpath/node.def @@ -0,0 +1 @@ +help: "Change the default bestpath selection" diff --git a/templates/protocols/bgp/node.tag/parameters/cluster-id/node.def b/templates/protocols/bgp/node.tag/parameters/cluster-id/node.def new file mode 100644 index 00000000..492a8e83 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/cluster-id/node.def @@ -0,0 +1,6 @@ +type: ipv4 +help: "Configure route-reflector cluster-id\n" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp cluster-id $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp cluster-id \" " diff --git a/templates/protocols/bgp/node.tag/parameters/confederation/identifier/node.def b/templates/protocols/bgp/node.tag/parameters/confederation/identifier/node.def new file mode 100644 index 00000000..826d32c5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/confederation/identifier/node.def @@ -0,0 +1,7 @@ +type: u32 +help: "Configure confederation AS id" +syntax: $(@) >= 1 && $(@) <= 65535; "confederation AS id must be between 1 and 65535" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp confederation identifier $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp confederation identifier \" " diff --git a/templates/protocols/bgp/node.tag/parameters/confederation/node.def b/templates/protocols/bgp/node.tag/parameters/confederation/node.def new file mode 100644 index 00000000..272c946c --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/confederation/node.def @@ -0,0 +1 @@ +help: "AS confederation parameters" diff --git a/templates/protocols/bgp/node.tag/parameters/confederation/peers/node.def b/templates/protocols/bgp/node.tag/parameters/confederation/peers/node.def new file mode 100644 index 00000000..38042e17 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/confederation/peers/node.def @@ -0,0 +1,8 @@ +multi: +type: u32 +help: "Peer ASs in BGP confederation" +syntax: $(@) >= 1 && $(@) <= 65535; "confederation AS id must be between 1 and 65535" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp confederation peers $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp confederation peers $(@)\" " diff --git a/templates/protocols/bgp/node.tag/parameters/dampening/half-life/node.def b/templates/protocols/bgp/node.tag/parameters/dampening/half-life/node.def new file mode 100644 index 00000000..aa710acf --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/dampening/half-life/node.def @@ -0,0 +1,3 @@ +type: u32 +help: "Half-life time for the penalty" +syntax: $(@) >= 1 && $(@) <= 45; "Half-life penalty must be between 1 and 45" diff --git a/templates/protocols/bgp/node.tag/parameters/dampening/max-suppress-time/node.def b/templates/protocols/bgp/node.tag/parameters/dampening/max-suppress-time/node.def new file mode 100644 index 00000000..a4f59b8f --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/dampening/max-suppress-time/node.def @@ -0,0 +1,5 @@ +type: u32 +help: "Maximum duration to suppress a stable route" +syntax: $(@) >= 1 && $(@) <= 255; "Max-suppress-time must be between 1 and 255" +commit: $(../re-use/) != ""; "Re-use value must be set" +commit: $(../start-suppress-time/) != ""; "Start-suppress-time must be set" diff --git a/templates/protocols/bgp/node.tag/parameters/dampening/node.def b/templates/protocols/bgp/node.tag/parameters/dampening/node.def new file mode 100644 index 00000000..987c30c4 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/dampening/node.def @@ -0,0 +1,12 @@ +help: "Enable route-flap dampening" +delete: "touch /tmp/bgp-dampening.\\$PPID" +end: "sh -c \" + /usr/bin/vtysh -c \\\"configure terminal\\\" -c \\\"router bgp $(../../@)\\\" \ + -c \\\"no bgp dampening\\\" ; \ + if [ -f \\\"/tmp/bgp-dampening.\\\\$PPID\\\" ]; then \ + rm -f \\\"/tmp/bgp-dampening.\\\\$PPID\\\" ; \ + else \ + /usr/bin/vtysh -c \\\"configure terminal\\\" -c \\\"router bgp $(../../@)\\\" \ + -c \\\"bgp dampening $(./half-life/@) $(./re-use/@) $(./start-suppress-time/@) $(./max-suppress-time/@)\\\" ; \ + fi ; \ + \" " diff --git a/templates/protocols/bgp/node.tag/parameters/dampening/re-use/node.def b/templates/protocols/bgp/node.tag/parameters/dampening/re-use/node.def new file mode 100644 index 00000000..83b3e246 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/dampening/re-use/node.def @@ -0,0 +1,5 @@ +type: u32 +help: "Value to start reusing a route" +syntax: $(@) >= 1 && $(@) <= 20000; "Re-use value must be between 1 and 20000" +commit: $(../start-suppress-time/) != ""; "Start-suppress-time must be set" +commit: $(../max-suppress-time/) != ""; "Max-suppress-time must be set" diff --git a/templates/protocols/bgp/node.tag/parameters/dampening/start-suppress-time/node.def b/templates/protocols/bgp/node.tag/parameters/dampening/start-suppress-time/node.def new file mode 100644 index 00000000..17d5a67a --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/dampening/start-suppress-time/node.def @@ -0,0 +1,5 @@ +type: u32 +help: "Value to start suppressing a route" +syntax: $(@) >= 1 && $(@) <= 20000; "Start-suppress-time must be between 1 and 20000" +commit: $(../re-use/) != ""; "Re-use value must be set" +commit: $(../max-suppress-time/) != ""; "Max-suppress-time must be set" diff --git a/templates/protocols/bgp/node.tag/parameters/default/local-pref/node.def b/templates/protocols/bgp/node.tag/parameters/default/local-pref/node.def new file mode 100644 index 00000000..c8c5bb44 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/default/local-pref/node.def @@ -0,0 +1,6 @@ +type: u32 +help: "Local preference (higher=more preferred)" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp default local-preference $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp default local-preference\" " diff --git a/templates/protocols/bgp/node.tag/parameters/default/no-ipv4-unicast/node.def b/templates/protocols/bgp/node.tag/parameters/default/no-ipv4-unicast/node.def new file mode 100644 index 00000000..66f77ded --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/default/no-ipv4-unicast/node.def @@ -0,0 +1,5 @@ +help: "Deactivate IPv4 unicast for a peer by default" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp default ipv4-unicast\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp default ipv4-unicast\" " diff --git a/templates/protocols/bgp/node.tag/parameters/default/node.def b/templates/protocols/bgp/node.tag/parameters/default/node.def new file mode 100644 index 00000000..f1c90ec3 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/default/node.def @@ -0,0 +1 @@ +help: "Configure BGP defaults" diff --git a/templates/protocols/bgp/node.tag/parameters/deterministic-med/node.def b/templates/protocols/bgp/node.tag/parameters/deterministic-med/node.def new file mode 100644 index 00000000..2f816856 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/deterministic-med/node.def @@ -0,0 +1,5 @@ +help: "Pick the best-MED path among paths advertised from the neighboring AS" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp deterministic-med \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp deterministic-med \" " diff --git a/templates/protocols/bgp/node.tag/parameters/enforce-first-as/node.def b/templates/protocols/bgp/node.tag/parameters/enforce-first-as/node.def new file mode 100644 index 00000000..9263395a --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/enforce-first-as/node.def @@ -0,0 +1,5 @@ +help: "Enforce the first AS for EBGP routes" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp enforce-first-as \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp enforce-first-as \" " diff --git a/templates/protocols/bgp/node.tag/parameters/graceful-restart/node.def b/templates/protocols/bgp/node.tag/parameters/graceful-restart/node.def new file mode 100644 index 00000000..1e849462 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/graceful-restart/node.def @@ -0,0 +1 @@ +help: "Graceful restart capability parameters" diff --git a/templates/protocols/bgp/node.tag/parameters/graceful-restart/stalepath-time/node.def b/templates/protocols/bgp/node.tag/parameters/graceful-restart/stalepath-time/node.def new file mode 100644 index 00000000..8c28175e --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/graceful-restart/stalepath-time/node.def @@ -0,0 +1,7 @@ +type: u32 +help: "Set the max time in seconds to hold onto restarting peer's stale paths" +syntax: $(@) >= 1 && $(@) <= 3600; "stalepath-time must be between 1 and 3600" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp graceful-restart stalepath-time $(@) \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp graceful-restart stalepath-time \" " diff --git a/templates/protocols/bgp/node.tag/parameters/log-neighbor-changes/node.def b/templates/protocols/bgp/node.tag/parameters/log-neighbor-changes/node.def new file mode 100644 index 00000000..d4a64a82 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/log-neighbor-changes/node.def @@ -0,0 +1,5 @@ +help: "Log neighbor up/down and reset reason" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp log-neighbor-changes \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp log-neighbor-changes \" " diff --git a/templates/protocols/bgp/node.tag/parameters/network/import-check/node.def b/templates/protocols/bgp/node.tag/parameters/network/import-check/node.def new file mode 100644 index 00000000..0c6ced5d --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/network/import-check/node.def @@ -0,0 +1,5 @@ +help: "Check BGP network route exists in IGP" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"bgp network import-check \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../../@)\" \ + -c \"no bgp network import-check \" " diff --git a/templates/protocols/bgp/node.tag/parameters/network/node.def b/templates/protocols/bgp/node.tag/parameters/network/node.def new file mode 100644 index 00000000..2db2693f --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/network/node.def @@ -0,0 +1 @@ +help: "Network parameter options" diff --git a/templates/protocols/bgp/node.tag/parameters/no-client-to-client-reflection/node.def b/templates/protocols/bgp/node.tag/parameters/no-client-to-client-reflection/node.def new file mode 100644 index 00000000..41ee28db --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/no-client-to-client-reflection/node.def @@ -0,0 +1,5 @@ +help: "Disable client to client route reflection" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp client-to-client reflection \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp client-to-client reflection \" " diff --git a/templates/protocols/bgp/node.tag/parameters/no-fast-external-failover/node.def b/templates/protocols/bgp/node.tag/parameters/no-fast-external-failover/node.def new file mode 100644 index 00000000..a53214e0 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/no-fast-external-failover/node.def @@ -0,0 +1,5 @@ +help: "Immediately reset session if a link to a directly connected external peer goes down" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp fast-external-failover \" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp fast-external-failover \" " diff --git a/templates/protocols/bgp/node.tag/parameters/node.def b/templates/protocols/bgp/node.tag/parameters/node.def new file mode 100644 index 00000000..b23668f8 --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/node.def @@ -0,0 +1 @@ +help: "Configure BGP parameters" diff --git a/templates/protocols/bgp/node.tag/parameters/router-id/node.def b/templates/protocols/bgp/node.tag/parameters/router-id/node.def new file mode 100644 index 00000000..645ecb6f --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/router-id/node.def @@ -0,0 +1,6 @@ +type: ipv4 +help: "Override configured router identifier" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp router-id $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp router-id \" " diff --git a/templates/protocols/bgp/node.tag/parameters/scan-time/node.def b/templates/protocols/bgp/node.tag/parameters/scan-time/node.def new file mode 100644 index 00000000..f98dd34a --- /dev/null +++ b/templates/protocols/bgp/node.tag/parameters/scan-time/node.def @@ -0,0 +1,7 @@ +type: u32 +syntax: $(@) >= 5 && $(@) <= 60; "scan-time must be between 5 and 60 seconds" +help: "Configure background scanner interval" +update: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"bgp scan-time $(@)\" " +delete: "/usr/bin/vtysh -c \"configure terminal\" -c \"router bgp $(../../@)\" \ + -c \"no bgp scan-time \" " -- cgit v1.2.3