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;
58 grouping open-message {
59 description "Open Message";
60 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
62 type protocol-version;
74 type inet:ipv4-address;
78 list optional-capabilities {
79 reference "http://tools.ietf.org/html/rfc5492#section-4";
80 container c-parameters {
81 container as4-bytes-capability {
82 reference "http://tools.ietf.org/html/rfc6793";
92 grouping path-attributes {
93 reference "http://tools.ietf.org/html/rfc4271#section-5";
94 container attributes {
96 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
98 type bgp-t:bgp-origin;
103 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
105 uses bgp-t:as-path-segment;
109 container multi-exit-disc {
110 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
115 container local-pref {
116 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
121 container atomic-aggregate {
122 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
123 presence "Atomic Aggregate attribute is present.";
125 container aggregator {
126 uses bgp-t:bgp-aggregator;
129 uses bgp-t:community;
131 list extended-communities {
132 uses bgp-t:extended-community;
134 container originator-id {
137 container cluster-id {
143 type netc:accumulated-igp-metric;
147 list unrecognized-attributes {
171 notification update {
175 grouping update-message {
176 description "Update Message";
177 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
178 uses path-attributes;
179 container withdrawn-routes {
180 leaf-list withdrawn-routes {
181 type inet:ipv4-prefix;
186 type inet:ipv4-prefix;
191 notification keepalive {
192 description "Keepalive Message";
193 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
196 notification notify {
200 grouping notify-message {
201 description "Notification Message";
202 reference "http://tools.ietf.org/html/rfc4271#section-4.5";