BGPCEP-695 Make next-hop attribute value mandatory 82/64782/10
authorKevin Wang <kevixw@gmail.com>
Thu, 26 Oct 2017 22:59:14 +0000 (15:59 -0700)
committerRobert Varga <nite@hq.sk>
Tue, 26 Mar 2019 15:07:15 +0000 (15:07 +0000)
An empty element <ipv4-next-hop /> should not be allowed in input.
When ipv4-next-hop or ipv6-next-hop is specified, the global value
must be provided. If no next-hop is provided, default empty-next-hop
will be used.

Change-Id: Idd01a060750c66a14a4341ae592cf58b4feacf02
Signed-off-by: Kevin Wang <kevixw@gmail.com>
bgp/concepts/src/main/yang/bgp-types.yang

index 03e1abce0b038dd12f1afc869e986e59b49f1f28..89c6e8b11efac7256f1a5fb5b6e23b4f405bf589 100644 (file)
@@ -466,6 +466,7 @@ module bgp-types {
                     reference "http://tools.ietf.org/html/rfc4271#section-5.1.3";
                     leaf global {
                         type inet:ipv4-address;
+                        mandatory true;
                     }
                 }
             }
@@ -474,6 +475,7 @@ module bgp-types {
                     reference "http://tools.ietf.org/html/rfc4760#section-3";
                     leaf global {
                         type inet:ipv6-address;
+                        mandatory true;
                     }
                     leaf link-local {
                         type inet:ipv6-address;