From 707e72e9d449beba232599f7af5ac72c0ac8ce16 Mon Sep 17 00:00:00 2001 From: Ruben Herold <ruben@puettmann.net> Date: Wed, 29 May 2019 14:31:37 +0200 Subject: T1390: Add support for remote-as external and internal (cherry picked from commit 7eecaeecd52e222b3883c9212ecd0b5242648363) --- .../protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def b/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def index 5fbec1ae..61cd13a0 100644 --- a/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def +++ b/templates/protocols/bgp/node.tag/neighbor/node.tag/remote-as/node.def @@ -1,5 +1,6 @@ -type: u32 +type: txt help: Neighbor BGP AS number [REQUIRED] -val_help: u32: 1-4294967294; Neighbor AS number -syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294; \ - "remote-as must be between 1 and 4294967294" +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(@)" -- cgit v1.2.3