X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=bgp%2Fparser-api%2Fsrc%2Fmain%2Fyang%2Fbgp-message.yang;h=a1f51de81f3f0a684174d90a1c29f315e478ed36;hb=3c135df98a164d4207775de96a5217a392d1949e;hp=466648773c7411a76f30c5a6bc23d8a0d7a240c1;hpb=9d13ee03a6468b357dace1214e6462f4fc9a1c6e;p=bgpcep.git diff --git a/bgp/parser-api/src/main/yang/bgp-message.yang b/bgp/parser-api/src/main/yang/bgp-message.yang index 466648773c..a1f51de81f 100644 --- a/bgp/parser-api/src/main/yang/bgp-message.yang +++ b/bgp/parser-api/src/main/yang/bgp-message.yang @@ -88,77 +88,79 @@ module bgp-message { grouping path-attributes { reference "http://tools.ietf.org/html/rfc4271#section-5"; - container origin { - reference "http://tools.ietf.org/html/rfc4271#section-5.1.1"; - leaf value { - type bgp-t:bgp-origin; - mandatory true; - } - } - container as-path { - reference "http://tools.ietf.org/html/rfc4271#section-5.1.2"; - list segments { - uses bgp-t:as-path-segment; + container attributes { + container origin { + reference "http://tools.ietf.org/html/rfc4271#section-5.1.1"; + leaf value { + type bgp-t:bgp-origin; + mandatory true; + } } - } - uses bgp-t:next-hop; - container multi-exit-disc { - reference "http://tools.ietf.org/html/rfc4271#section-5.1.4"; - leaf med { - type uint32; + container as-path { + reference "http://tools.ietf.org/html/rfc4271#section-5.1.2"; + list segments { + uses bgp-t:as-path-segment; + } } - } - container local-pref { - reference "http://tools.ietf.org/html/rfc4271#section-5.1.5"; - leaf pref { - type uint32; + uses bgp-t:next-hop; + container multi-exit-disc { + reference "http://tools.ietf.org/html/rfc4271#section-5.1.4"; + leaf med { + type uint32; + } } - } - container atomic-aggregate { - reference "http://tools.ietf.org/html/rfc4271#section-5.1.6"; - presence "Atomic Aggregate attribute is present."; - } - container aggregator { - uses bgp-t:bgp-aggregator; - } - list communities { - uses bgp-t:community; - } - list extended-communities { - uses bgp-t:extended-community; - } - container originator-id { - uses originator-id; - } - container cluster-id { - uses cluster-id; - } - container aigp { - container aigp-tlv { - leaf metric { - type netc:accumulated-igp-metric; + container local-pref { + reference "http://tools.ietf.org/html/rfc4271#section-5.1.5"; + leaf pref { + type uint32; } } - } - list unrecognized-attributes { - key type; - leaf partial { - type boolean; - mandatory true; + container atomic-aggregate { + reference "http://tools.ietf.org/html/rfc4271#section-5.1.6"; + presence "Atomic Aggregate attribute is present."; + } + container aggregator { + uses bgp-t:bgp-aggregator; + } + list communities { + uses bgp-t:community; } - leaf transitive { - type boolean; - mandatory true; + list extended-communities { + uses bgp-t:extended-community; } - leaf type { - type uint8; - mandatory true; + container originator-id { + uses originator-id; } - leaf value { - type binary { - length 0..65535; + container cluster-id { + uses cluster-id; + } + container aigp { + container aigp-tlv { + leaf metric { + type netc:accumulated-igp-metric; + } + } + } + list unrecognized-attributes { + key type; + leaf partial { + type boolean; + mandatory true; + } + leaf transitive { + type boolean; + mandatory true; + } + leaf type { + type uint8; + mandatory true; + } + leaf value { + type binary { + length 0..65535; + } + mandatory true; } - mandatory true; } } } @@ -166,10 +168,7 @@ module bgp-message { notification update { description "Update Message"; reference "http://tools.ietf.org/html/rfc4271#section-4.3"; - container path-attributes { - reference "http://tools.ietf.org/html/rfc4271#section-5"; - uses path-attributes; - } + uses path-attributes; container withdrawn-routes { leaf-list withdrawn-routes { type inet:ipv4-prefix;