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 reference "http://tools.ietf.org/html/rfc3392#section-4";
75 container as4-bytes-capability {
76 reference "http://tools.ietf.org/html/rfc6793";
86 grouping path-attributes {
87 reference "http://tools.ietf.org/html/rfc4271#section-5";
89 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
91 type bgp-t:bgp-origin;
96 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
98 uses bgp-t:as-path-segment;
102 container multi-exit-disc {
103 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
108 container local-pref {
109 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
114 container atomic-aggregate {
115 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
116 presence "Atomic Aggregate attribute is present.";
118 container aggregator {
119 uses bgp-t:bgp-aggregator;
122 uses bgp-t:community;
124 list extended-communities {
125 uses bgp-t:extended-community;
127 container originator-id {
130 container cluster-id {
135 notification update {
136 description "Update Message";
137 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
138 container path-attributes {
139 reference "http://tools.ietf.org/html/rfc4271#section-5";
140 uses path-attributes;
142 container withdrawn-routes {
143 leaf-list withdrawn-routes {
144 type inet:ipv4-prefix;
149 type inet:ipv4-prefix;
154 notification keepalive {
155 description "Keepalive Message";
156 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
159 notification notify {
160 description "Notification Message";
161 reference "http://tools.ietf.org/html/rfc4271#section-4.5";