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;
57 grouping open-message {
58 description "Open Message";
59 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
61 type protocol-version;
73 type inet:ipv4-address;
77 list optional-capabilities {
78 reference "http://tools.ietf.org/html/rfc5492#section-4";
79 container c-parameters {
80 container as4-bytes-capability {
81 reference "http://tools.ietf.org/html/rfc6793";
91 grouping path-attributes {
92 reference "http://tools.ietf.org/html/rfc4271#section-5";
93 container attributes {
95 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
97 type bgp-t:bgp-origin;
102 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
104 uses bgp-t:as-path-segment;
108 container multi-exit-disc {
109 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
114 container local-pref {
115 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
120 container atomic-aggregate {
121 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
122 presence "Atomic Aggregate attribute is present.";
124 container aggregator {
125 uses bgp-t:bgp-aggregator;
128 uses bgp-t:community;
130 list extended-communities {
131 uses bgp-t:extended-community;
133 container originator-id {
136 container cluster-id {
142 type netc:accumulated-igp-metric;
146 list unrecognized-attributes {
170 notification update {
174 grouping update-message {
175 description "Update Message";
176 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
177 uses path-attributes;
178 container withdrawn-routes {
179 leaf-list withdrawn-routes {
180 type inet:ipv4-prefix;
185 type inet:ipv4-prefix;
190 notification keepalive {
191 description "Keepalive Message";
192 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
195 notification notify {
199 grouping notify-message {
200 description "Notification Message";
201 reference "http://tools.ietf.org/html/rfc4271#section-4.5";