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";
75 container c-parameters {
76 container as4-bytes-capability {
77 reference "http://tools.ietf.org/html/rfc6793";
87 grouping path-attributes {
88 reference "http://tools.ietf.org/html/rfc4271#section-5";
89 container attributes {
91 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
93 type bgp-t:bgp-origin;
98 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
100 uses bgp-t:as-path-segment;
104 container multi-exit-disc {
105 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
110 container local-pref {
111 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
116 container atomic-aggregate {
117 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
118 presence "Atomic Aggregate attribute is present.";
120 container aggregator {
121 uses bgp-t:bgp-aggregator;
124 uses bgp-t:community;
126 list extended-communities {
127 uses bgp-t:extended-community;
129 container originator-id {
132 container cluster-id {
138 type netc:accumulated-igp-metric;
142 list unrecognized-attributes {
166 notification update {
167 description "Update Message";
168 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
169 uses path-attributes;
170 container withdrawn-routes {
171 leaf-list withdrawn-routes {
172 type inet:ipv4-prefix;
177 type inet:ipv4-prefix;
182 notification keepalive {
183 description "Keepalive Message";
184 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
187 notification notify {
188 description "Notification Message";
189 reference "http://tools.ietf.org/html/rfc4271#section-4.5";