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";
103 grouping path-attributes {
104 reference "http://tools.ietf.org/html/rfc4271#section-5";
105 container attributes {
107 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
109 type bgp-t:bgp-origin;
114 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
116 uses bgp-t:as-path-segment;
120 container multi-exit-disc {
121 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
126 container local-pref {
127 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
132 container atomic-aggregate {
133 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
134 presence "Atomic Aggregate attribute is present.";
136 container aggregator {
137 uses bgp-t:bgp-aggregator;
140 uses bgp-t:community;
142 list extended-communities {
143 uses bgp-t:extended-community;
145 container originator-id {
148 container cluster-id {
154 type netc:accumulated-igp-metric;
158 list unrecognized-attributes {
182 notification update {
186 grouping update-message {
187 description "Update Message";
188 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
189 uses path-attributes;
190 container withdrawn-routes {
191 leaf-list withdrawn-routes {
192 type inet:ipv4-prefix;
197 type inet:ipv4-prefix;
202 notification keepalive {
203 description "Keepalive Message";
204 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
207 notification notify {
211 grouping notify-message {
212 description "Notification Message";
213 reference "http://tools.ietf.org/html/rfc4271#section-4.5";