diff options
author | Ruben Herold <ruben@puettmann.net> | 2019-05-29 14:38:54 +0200 |
---|---|---|
committer | Ruben Herold <ruben@puettmann.net> | 2019-05-29 16:08:04 +0200 |
commit | 3c2ff1eac67f2e1df2a5bff301dc74a642d11c88 (patch) | |
tree | 3f5e9953b29bec75ffc5476fc97b2cc45478b4ac /templates/protocols/bgp | |
parent | 7eecaeecd52e222b3883c9212ecd0b5242648363 (diff) | |
download | vyatta-cfg-quagga-3c2ff1eac67f2e1df2a5bff301dc74a642d11c88.tar.gz vyatta-cfg-quagga-3c2ff1eac67f2e1df2a5bff301dc74a642d11c88.zip |
T1390: Add Support for ipv6 unnumbered Interface with extended-nexthop
Diffstat (limited to 'templates/protocols/bgp')
8 files changed, 37 insertions, 11 deletions
diff --git a/templates/protocols/bgp/node.tag/neighbor/node.def b/templates/protocols/bgp/node.tag/neighbor/node.def index a41fc20d..c2a810e4 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.def @@ -1,8 +1,9 @@ tag: -type: ipv4, ipv6 +type: txt help: BGP neighbor -val_help: ipv4; BGP neighbor IP address -val_help: ipv6; BGP neighbor IPv6 address +val_help: txt; BGP neighbor IP address +val_help: txt; BGP neighbor IPv6 address +val_help: txt; Interface name syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl \ - --check-neighbor-ip --neighbor $VAR(@)" + --check-neighbor-ip --neighbor $VAR(@)" diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def index 4f49f816..41ecd0d7 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/node.def @@ -1,2 +1 @@ -type: txt -help: Network interface to use for the BGP session +help: interface parameters diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/peer-group/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/peer-group/node.def new file mode 100644 index 00000000..cbad3a03 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/peer-group/node.def @@ -0,0 +1,6 @@ +type: txt +help: peer group for this peer +allowed: local -a params + params=$( /opt/vyatta/sbin/vyatta-bgp.pl --list-peer-groups --as $VAR(../../../@) ) + echo -n ${params[@]##*/} +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" diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/remote-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/remote-as/node.def new file mode 100644 index 00000000..61cd13a0 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/remote-as/node.def @@ -0,0 +1,6 @@ +type: txt +help: Neighbor BGP AS number [REQUIRED] +val_help: txt: 1-4294967294; Neighbor AS number +val_help: txt: external; except that if the peers ASN is different than mine +val_help: txt: internal; except that if the peers ASN is the same as mine +syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-remote-as $VAR(@)" diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/node.def new file mode 100644 index 00000000..0c454278 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/node.def @@ -0,0 +1 @@ +help: Enable BGP with v6 link-local only diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/peer-group/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/peer-group/node.def new file mode 100644 index 00000000..5a5257e2 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/peer-group/node.def @@ -0,0 +1,6 @@ +type: txt +help: peer group for this peer +allowed: local -a params + params=$( /opt/vyatta/sbin/vyatta-bgp.pl --list-peer-groups --as $VAR(../../../../@) ) + echo -n ${params[@]##*/} +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" diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/remote-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/remote-as/node.def new file mode 100644 index 00000000..61cd13a0 --- /dev/null +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/interface/v6only/remote-as/node.def @@ -0,0 +1,6 @@ +type: txt +help: Neighbor BGP AS number [REQUIRED] +val_help: txt: 1-4294967294; Neighbor AS number +val_help: txt: external; except that if the peers ASN is different than mine +val_help: txt: internal; except that if the peers ASN is the same as mine +syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-remote-as $VAR(@)" diff --git a/templates/protocols/bgp/node.tag/peer-group/node.tag/remote-as/node.def b/templates/protocols/bgp/node.tag/peer-group/node.tag/remote-as/node.def index ab3913c7..61cd13a0 100644 --- a/templates/protocols/bgp/node.tag/peer-group/node.tag/remote-as/node.def +++ b/templates/protocols/bgp/node.tag/peer-group/node.tag/remote-as/node.def @@ -1,5 +1,6 @@ -type: u32 -help: Peer-group BGP AS number [REQUIRED] -val_help: u32:1-4294967294; AS number -syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294; \ - "remote-as must be between 1 and 4294967294" +type: txt +help: Neighbor BGP AS number [REQUIRED] +val_help: txt: 1-4294967294; Neighbor AS number +val_help: txt: external; except that if the peers ASN is different than mine +val_help: txt: internal; except that if the peers ASN is the same as mine +syntax:expression: exec "/opt/vyatta/sbin/vyatta-bgp.pl --check-remote-as $VAR(@)" |