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; }
8 import network-concepts { prefix netc; revision-date 2013-11-25; }
10 organization "Cisco Systems, Inc.";
11 contact "Dana Kutenicsova <dkutenic@cisco.com>";
14 "This module contains the base data model of a BGP message.
15 It rolls up the definitions contained in RFC4271 and RFC4893.
17 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
19 This program and the accompanying materials are made available
20 under the terms of the Eclipse Public License v1.0 which
21 accompanies this distribution, and is available at
22 http://www.eclipse.org/legal/epl-v10.html";
24 revision "2013-09-19" {
26 "Split off basic types";
29 revision "2013-09-18" {
32 reference "RFC4271, RFC4893";
35 typedef protocol-version {
44 "Identifier of a single path. The identifier does not
45 carry any semantic meaning beyond uniquely identifying
49 grouping originator-id {
51 type inet:ipv4-address;
57 type bgp-t:cluster-identifier;
66 grouping open-message {
67 description "Open Message";
68 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
70 type protocol-version;
82 type inet:ipv4-address;
86 list optional-capabilities {
87 reference "http://tools.ietf.org/html/rfc5492#section-4";
88 container c-parameters {
89 container as4-bytes-capability {
90 reference "http://tools.ietf.org/html/rfc6793";
95 container bgp-extended-message-capability {
96 reference "https://www.ietf.org/archive/id/draft-ietf-idr-bgp-extended-messages-11.txt";
97 presence "Indicates peer is able to send/receive 64K messages";
104 grouping path-attributes {
105 reference "http://tools.ietf.org/html/rfc4271#section-5";
106 container attributes {
108 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
110 type bgp-t:bgp-origin;
115 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
117 uses bgp-t:as-path-segment;
121 container multi-exit-disc {
122 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
127 container local-pref {
128 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
133 container atomic-aggregate {
134 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
135 presence "Atomic Aggregate attribute is present.";
137 container aggregator {
138 uses bgp-t:bgp-aggregator;
141 uses bgp-t:community;
143 list extended-communities {
144 uses bgp-t:extended-community;
146 container originator-id {
149 container cluster-id {
155 type netc:accumulated-igp-metric;
159 list unrecognized-attributes {
183 notification update {
187 grouping update-message {
188 description "Update Message";
189 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
190 uses path-attributes;
191 container withdrawn-routes {
192 leaf-list withdrawn-routes {
193 type inet:ipv4-prefix;
198 type inet:ipv4-prefix;
203 notification keepalive {
204 description "Keepalive Message";
205 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
208 notification notify {
212 grouping notify-message {
213 description "Notification Message";
214 reference "http://tools.ietf.org/html/rfc4271#section-4.5";