summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Hopps <chopps@gmail.com>2021-05-23 22:26:49 +0200
committerChristian Hopps <chopps@gmail.com>2021-05-23 22:30:04 +0200
commitd267d776680f63fde34e21ef911f558659d7116c (patch)
tree155bda391620bc9dd61c2bd197f681832818e12b
parentMerge pull request #8687 from opensourcerouting/bgp-fix-mcast (diff)
downloadfrr-d267d776680f63fde34e21ef911f558659d7116c.tar.xz
frr-d267d776680f63fde34e21ef911f558659d7116c.zip
bgpd: fix default for extended-nexthop-capability
The default for extended-nexthop-capability is true for unnumbered (interface) neighbors, false for other types. Break the inner grouping out of the outer neighbor-parameters grouping so that we can refine the default in that uses case. Signed-off-by: Christian Hopps <chopps@gmail.com>
-rw-r--r--yang/frr-bgp-neighbor.yang2
-rw-r--r--yang/frr-bgp-peer-group.yang2
-rw-r--r--yang/frr-bgp.yang8
3 files changed, 10 insertions, 2 deletions
diff --git a/yang/frr-bgp-neighbor.yang b/yang/frr-bgp-neighbor.yang
index d6688eed2..03af643ba 100644
--- a/yang/frr-bgp-neighbor.yang
+++ b/yang/frr-bgp-neighbor.yang
@@ -90,8 +90,6 @@ submodule frr-bgp-neighbor {
"Don't send open messages to this neighbor.";
}
- uses structure-neighbor-group-capability-options;
-
uses neighbor-update-source;
uses structure-neighbor-group-ebgp-multihop;
diff --git a/yang/frr-bgp-peer-group.yang b/yang/frr-bgp-peer-group.yang
index 746ced30c..80c9ecff2 100644
--- a/yang/frr-bgp-peer-group.yang
+++ b/yang/frr-bgp-peer-group.yang
@@ -76,6 +76,8 @@ submodule frr-bgp-peer-group {
uses neighbor-remote-as;
uses neighbor-parameters;
+
+ uses structure-neighbor-group-capability-options;
}
grouping bgp-peer-group-list {
diff --git a/yang/frr-bgp.yang b/yang/frr-bgp.yang
index 264ad70d6..0e15195dd 100644
--- a/yang/frr-bgp.yang
+++ b/yang/frr-bgp.yang
@@ -230,6 +230,8 @@ module frr-bgp {
}
uses neighbor-parameters;
+
+ uses structure-neighbor-group-capability-options;
}
list unnumbered-neighbor {
@@ -264,6 +266,12 @@ module frr-bgp {
uses neighbor-remote-as;
uses neighbor-parameters;
+
+ uses structure-neighbor-group-capability-options {
+ refine "frr-bgp:capability-options/extended-nexthop-capability" {
+ default "true";
+ }
+ }
}
}