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";
91 container attributes {
93 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
95 type bgp-t:bgp-origin;
100 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
102 uses bgp-t:as-path-segment;
106 container multi-exit-disc {
107 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
112 container local-pref {
113 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
118 container atomic-aggregate {
119 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
120 presence "Atomic Aggregate attribute is present.";
122 container aggregator {
123 uses bgp-t:bgp-aggregator;
126 uses bgp-t:community;
128 list extended-communities {
129 uses bgp-t:extended-community;
131 container originator-id {
134 container cluster-id {
140 type netc:accumulated-igp-metric;
144 list unrecognized-attributes {
168 notification update {
169 description "Update Message";
170 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
171 uses path-attributes;
172 container withdrawn-routes {
173 leaf-list withdrawn-routes {
174 type inet:ipv4-prefix;
179 type inet:ipv4-prefix;
184 notification keepalive {
185 description "Keepalive Message";
186 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
189 notification notify {
190 description "Notification Message";
191 reference "http://tools.ietf.org/html/rfc4271#section-4.5";