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 {
41 description "Open Message";
42 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
44 type protocol-version;
56 type inet:ipv4-address;
60 reference "http://tools.ietf.org/html/rfc3392#section-4";
63 container as4-bytes-capability {
64 reference "http://tools.ietf.org/html/rfc6793";
74 grouping path-attributes {
75 reference "http://tools.ietf.org/html/rfc4271#section-5";
77 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
79 type bgp-t:bgp-origin;
84 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
86 uses bgp-t:as-path-segment;
90 container multi-exit-disc {
91 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
96 container local-pref {
97 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
102 container atomic-aggregate {
103 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
104 presence "Atomic Aggregate attribute is present.";
106 container aggregator {
107 uses bgp-t:bgp-aggregator;
110 uses bgp-t:community;
112 list extended-communities {
113 uses bgp-t:extended-community;
116 type inet:ipv4-address;
118 leaf-list cluster-id {
119 type bgp-t:cluster-identifier;
123 notification update {
124 description "Update Message";
125 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
126 container path-attributes {
127 reference "http://tools.ietf.org/html/rfc4271#section-5";
128 uses path-attributes;
130 container withdrawn-routes {
131 leaf-list withdrawn-routes {
132 type inet:ipv4-prefix;
137 type inet:ipv4-prefix;
142 notification keepalive {
143 description "Keepalive Message";
144 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
147 notification notify {
148 description "Notification Message";
149 reference "http://tools.ietf.org/html/rfc4271#section-4.5";