diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-10-30 19:16:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 19:16:13 +0100 |
commit | d13fe84487444c8a71fbbb7623ae81b6a2edb83d (patch) | |
tree | 0115c871bf76cb11516c0968340fad12e76097ad /templates | |
parent | d4097690c40f619bc0e78a0d674985f7880a19a3 (diff) | |
parent | f78ad4c4c4cb94fe6bf321d9a6b8f54328b4cb79 (diff) | |
download | vyatta-cfg-quagga-d13fe84487444c8a71fbbb7623ae81b6a2edb83d.tar.gz vyatta-cfg-quagga-d13fe84487444c8a71fbbb7623ae81b6a2edb83d.zip |
Merge pull request #97 from zdc/T1875-equuleus
bgp listen: T1875: added BGP listen range feature
Diffstat (limited to 'templates')
4 files changed, 17 insertions, 0 deletions
diff --git a/templates/protocols/bgp/node.tag/listen/limit/node.def b/templates/protocols/bgp/node.tag/listen/limit/node.def new file mode 100644 index 00000000..dd249458 --- /dev/null +++ b/templates/protocols/bgp/node.tag/listen/limit/node.def @@ -0,0 +1,4 @@ +type: txt +help: Maximum number of dynamic neighbors that can be created +val_help: u32:1-5000; BGP neighbor limit +syntax:expression: exec "${vyos_libexec_dir}/validate-value --exec \"${vyos_validators_dir}/numeric --range 1-5000\" --value \'$VAR(@)\'"; "Invalid value" diff --git a/templates/protocols/bgp/node.tag/listen/node.def b/templates/protocols/bgp/node.tag/listen/node.def new file mode 100644 index 00000000..5e42f6f5 --- /dev/null +++ b/templates/protocols/bgp/node.tag/listen/node.def @@ -0,0 +1 @@ +help: Listen for and accept BGP dynamic neighbors from range diff --git a/templates/protocols/bgp/node.tag/listen/range/node.def b/templates/protocols/bgp/node.tag/listen/range/node.def new file mode 100644 index 00000000..262cb77b --- /dev/null +++ b/templates/protocols/bgp/node.tag/listen/range/node.def @@ -0,0 +1,7 @@ +tag: +type: txt +help: BGP dynamic neighbors listen range +val_help: ipv4net; IPv4 dynamic neighbors listen range +val_help: ipv6net; IPv6 dynamic neighbors listen range +syntax:expression: exec "${vyos_libexec_dir}/validate-value --exec \"${vyos_validators_dir}/ipv4-prefix \" --exec \"${vyos_validators_dir}/ipv6-prefix \" --value \'$VAR(@)\'"; "Invalid value" +commit:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-bgp-listen --as $VAR(../../@)" diff --git a/templates/protocols/bgp/node.tag/listen/range/node.tag/peer-group/node.def b/templates/protocols/bgp/node.tag/listen/range/node.tag/peer-group/node.def new file mode 100644 index 00000000..b58d9263 --- /dev/null +++ b/templates/protocols/bgp/node.tag/listen/range/node.tag/peer-group/node.def @@ -0,0 +1,5 @@ +type: txt +help: Peer group for this peer +val_help: txt; Peer-group name +allowed: /bin/cli-shell-api listNodes protocols bgp $VAR(../../../@) peer-group +commit:expression: exec "/opt/vyatta/sbin/vyatta_quagga_utils.pl --exists \"protocols bgp $VAR(../../../@) peer-group $VAR(@)\" "; "protocols bgp $VAR(../../../@) peer-group $VAR(@) doesn't exist" |