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;
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";