3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-message";
6 import ietf-inet-types { prefix inet; revision-date 2010-09-24; }
7 import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
9 organization "Cisco Systems, Inc.";
10 contact "Dana Kutenicsova <dkutenic@cisco.com>";
13 "This module contains the base data model of a BGP message.
14 It rolls up the definitions contained in RFC4271 and RFC4893.
16 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
18 This program and the accompanying materials are made available
19 under the terms of the Eclipse Public License v1.0 which
20 accompanies this distribution, and is available at
21 http://www.eclipse.org/legal/epl-v10.html";
23 revision "2013-09-19" {
25 "Split off basic types";
28 revision "2013-09-18" {
31 reference "RFC4271, RFC4893";
34 typedef protocol-version {
40 grouping originator-id {
42 type inet:ipv4-address;
48 type bgp-t:cluster-identifier;
53 description "Open Message";
54 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
56 type protocol-version;
68 type inet:ipv4-address;
72 list optional-capabilities {
73 reference "http://tools.ietf.org/html/rfc5492#section-4";
76 container as4-bytes-capability {
77 reference "http://tools.ietf.org/html/rfc6793";
88 grouping path-attributes {
89 reference "http://tools.ietf.org/html/rfc4271#section-5";
91 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
93 type bgp-t:bgp-origin;
98 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
100 uses bgp-t:as-path-segment;
104 container multi-exit-disc {
105 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
110 container local-pref {
111 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
116 container atomic-aggregate {
117 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
118 presence "Atomic Aggregate attribute is present.";
120 container aggregator {
121 uses bgp-t:bgp-aggregator;
124 uses bgp-t:community;
126 list extended-communities {
127 uses bgp-t:extended-community;
129 container originator-id {
132 container cluster-id {
137 notification update {
138 description "Update Message";
139 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
140 container path-attributes {
141 reference "http://tools.ietf.org/html/rfc4271#section-5";
142 uses path-attributes;
144 container withdrawn-routes {
145 leaf-list withdrawn-routes {
146 type inet:ipv4-prefix;
151 type inet:ipv4-prefix;
156 notification keepalive {
157 description "Keepalive Message";
158 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
161 notification notify {
162 description "Notification Message";
163 reference "http://tools.ietf.org/html/rfc4271#section-4.5";