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 {
41 grouping originator-id {
43 type inet:ipv4-address;
49 type bgp-t:cluster-identifier;
54 description "Open Message";
55 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
57 type protocol-version;
69 type inet:ipv4-address;
73 list optional-capabilities {
74 reference "http://tools.ietf.org/html/rfc5492#section-4";
77 container as4-bytes-capability {
78 reference "http://tools.ietf.org/html/rfc6793";
89 grouping path-attributes {
90 reference "http://tools.ietf.org/html/rfc4271#section-5";
92 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
94 type bgp-t:bgp-origin;
99 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
101 uses bgp-t:as-path-segment;
105 container multi-exit-disc {
106 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
111 container local-pref {
112 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
117 container atomic-aggregate {
118 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
119 presence "Atomic Aggregate attribute is present.";
121 container aggregator {
122 uses bgp-t:bgp-aggregator;
125 uses bgp-t:community;
127 list extended-communities {
128 uses bgp-t:extended-community;
130 container originator-id {
133 container cluster-id {
139 type netc:accumulated-igp-metric;
143 list unrecognized-attributes {
166 notification update {
167 description "Update Message";
168 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
169 container path-attributes {
170 reference "http://tools.ietf.org/html/rfc4271#section-5";
171 uses path-attributes;
173 container withdrawn-routes {
174 leaf-list withdrawn-routes {
175 type inet:ipv4-prefix;
180 type inet:ipv4-prefix;
185 notification keepalive {
186 description "Keepalive Message";
187 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
190 notification notify {
191 description "Notification Message";
192 reference "http://tools.ietf.org/html/rfc4271#section-4.5";