3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-message";
6 import ietf-inet-types {
8 revision-date 2010-09-24;
11 import bgp-types { prefix bgp-t; }
13 organization "Cisco Systems, Inc.";
14 contact "Dana Kutenicsova <dkutenic@cisco.com>";
17 "This module contains the base data model of a BGP message.
18 It rolls up the definitions contained in RFC4271 and RFC4893.
20 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
22 This program and the accompanying materials are made available
23 under the terms of the Eclipse Public License v1.0 which
24 accompanies this distribution, and is available at
25 http://www.eclipse.org/legal/epl-v10.html";
27 revision "2013-09-18" {
30 reference "RFC4271, RFC4893";
33 typedef protocol-version {
39 grouping as-path-segment {
60 description "Open Message";
61 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
63 type protocol-version;
75 type inet:ipv4-address;
78 list optional-parameters {
79 reference "http://tools.ietf.org/html/rfc3392#section-4";
82 reference "http://tools.ietf.org/html/rfc6793";
91 grouping path-attributes {
92 reference "http://tools.ietf.org/html/rfc4271#section-5";
94 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
96 type bgp-t:bgp-origin;
101 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
103 uses as-path-segment;
107 reference "http://tools.ietf.org/html/rfc4271#section-5.1.3";
109 type inet:ipv4-address;
113 container multi-exit-disc {
114 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
119 container local-pref {
120 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
125 container atomic-aggregate {
126 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
127 presence "Atomic Aggregate attribute is present.";
129 container aggregator {
130 uses bgp-t:bgp-aggregator;
133 uses bgp-t:community;
135 list extended-communities {
136 uses bgp-t:extended-community;
138 container cluster-id {
140 type bgp-t:cluster-identifier;
145 notification update {
146 description "Update Message";
147 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
148 container path-attributes {
149 reference "http://tools.ietf.org/html/rfc4271#section-5";
150 uses path-attributes;
152 container withdrawn-routes {
153 leaf-list withdrawn-routes {
154 type inet:ipv4-prefix;
159 type inet:ipv4-prefix;
164 notification keepalive {
165 description "Keepalive Message";
166 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
169 notification notify {
170 description "Notification Message";
171 reference "http://tools.ietf.org/html/rfc4271#section-4.5";