diff options
author | zsdc <taras@vyos.io> | 2022-10-18 12:25:54 +0300 |
---|---|---|
committer | zsdc <taras@vyos.io> | 2022-10-18 12:25:54 +0300 |
commit | f78ad4c4c4cb94fe6bf321d9a6b8f54328b4cb79 (patch) | |
tree | 0115c871bf76cb11516c0968340fad12e76097ad /templates/protocols | |
parent | d4097690c40f619bc0e78a0d674985f7880a19a3 (diff) | |
download | vyatta-cfg-quagga-f78ad4c4c4cb94fe6bf321d9a6b8f54328b4cb79.tar.gz vyatta-cfg-quagga-f78ad4c4c4cb94fe6bf321d9a6b8f54328b4cb79.zip |
bgp listen: T1875: added BGP listen range feature
This change provides the same CLI structure as in 1.4 for the
`protocols bgp listen` and must be fully compatible with future releases
(no additional migration is required).
Diffstat (limited to 'templates/protocols')
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" |