3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-message";
6 import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
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 {
45 "Identifier of a single path. The identifier does not
46 carry any semantic meaning beyond uniquely identifying
50 grouping path-id-grouping {
56 grouping originator-id {
58 type inet:ipv4-address;
64 type bgp-t:cluster-identifier;
73 grouping open-message {
74 description "Open Message";
75 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
77 type protocol-version;
89 type inet:ipv4-address;
93 list optional-capabilities {
94 reference "http://tools.ietf.org/html/rfc5492#section-4";
95 container c-parameters {
96 container as4-bytes-capability {
97 reference "http://tools.ietf.org/html/rfc6793";
102 container bgp-extended-message-capability {
103 reference "https://www.ietf.org/archive/id/draft-ietf-idr-bgp-extended-messages-11.txt";
104 presence "Indicates peer is able to send/receive 64K messages";
111 grouping path-attributes {
112 reference "http://tools.ietf.org/html/rfc4271#section-5";
113 container attributes {
115 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
117 type bgp-t:bgp-origin;
122 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
124 uses bgp-t:as-path-segment;
128 container multi-exit-disc {
129 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
134 container local-pref {
135 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
140 container atomic-aggregate {
141 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
142 presence "Atomic Aggregate attribute is present.";
144 container aggregator {
145 uses bgp-t:bgp-aggregator;
148 uses bgp-t:community;
150 list extended-communities {
151 uses bgp-t:extended-community;
153 container originator-id {
156 container cluster-id {
162 type netc:accumulated-igp-metric;
166 list unrecognized-attributes {
187 container bgp-prefix-sid {
188 list bgp-prefix-sid-tlvs {
189 choice bgp-prefix-sid-tlv {
190 reference "https://tools.ietf.org/html/draft-ietf-idr-bgp-prefix-sid-02";
198 notification update {
202 grouping update-message {
203 description "Update Message";
204 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
205 uses path-attributes;
206 container withdrawn-routes {
207 leaf-list withdrawn-routes {
208 type inet:ipv4-prefix;
213 type inet:ipv4-prefix;
218 notification keepalive {
219 description "Keepalive Message";
220 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
223 notification notify {
227 grouping notify-message {
228 description "Notification Message";
229 reference "http://tools.ietf.org/html/rfc4271#section-4.5";