summaryrefslogtreecommitdiff
path: root/yang/frr-bgp.yang
diff options
context:
space:
mode:
authorChirag Shah <chirag@nvidia.com>2020-09-15 21:56:10 -0700
committerChirag Shah <chirag@nvidia.com>2020-10-27 11:27:03 -0700
commitf4b8ec07219cce13c8627efe311247ee06f3a8ab (patch)
tree32587bb81a570b61801aca2ff2e13625a49c89b4 /yang/frr-bgp.yang
parentfbace230b0047d8f7cda2642a7fcaa64bcf1dc1a (diff)
bgpd: neighbor peergrp config to transactional cli
Signed-off-by: Chirag Shah <chirag@nvidia.com>
Diffstat (limited to 'yang/frr-bgp.yang')
-rw-r--r--yang/frr-bgp.yang25
1 files changed, 25 insertions, 0 deletions
diff --git a/yang/frr-bgp.yang b/yang/frr-bgp.yang
index 820c4b2861..b555267563 100644
--- a/yang/frr-bgp.yang
+++ b/yang/frr-bgp.yang
@@ -19,6 +19,10 @@ module frr-bgp {
prefix frr-interface;
}
+ import frr-bgp-types {
+ prefix frr-bt;
+ }
+
include "frr-bgp-common-structure";
include "frr-bgp-common";
@@ -206,6 +210,25 @@ module frr-bgp {
"The peer-group with which this neighbor is associated.";
}
+ container neighbor-remote-as {
+ leaf remote-as-type {
+ type frr-bt:as-type;
+ mandatory true;
+ description
+ "Remote AS type.";
+ }
+
+ leaf remote-as {
+ when "../remote-as-type = 'as-specified'";
+ type inet:as-number;
+ description
+ "The remote autonomous system number received in
+ the BGP OPEN message.";
+ reference
+ "RFC 4271";
+ }
+ }
+
uses neighbor-parameters;
}
@@ -238,6 +261,8 @@ module frr-bgp {
"The peer-group with which this neighbor is associated.";
}
+ uses neighbor-remote-as;
+
uses neighbor-parameters;
}
}