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 {
44 "Identifier of a single path. The identifier does not
45 carry any semantic meaning beyond uniquely identifying
49 grouping originator-id {
51 type inet:ipv4-address;
57 type bgp-t:cluster-identifier;
66 grouping open-message {
67 description "Open Message";
68 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
70 type protocol-version;
82 type inet:ipv4-address;
86 list optional-capabilities {
87 reference "http://tools.ietf.org/html/rfc5492#section-4";
88 container c-parameters {
89 container as4-bytes-capability {
90 reference "http://tools.ietf.org/html/rfc6793";
100 grouping path-attributes {
101 reference "http://tools.ietf.org/html/rfc4271#section-5";
102 container attributes {
104 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
106 type bgp-t:bgp-origin;
111 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
113 uses bgp-t:as-path-segment;
117 container multi-exit-disc {
118 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
123 container local-pref {
124 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
129 container atomic-aggregate {
130 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
131 presence "Atomic Aggregate attribute is present.";
133 container aggregator {
134 uses bgp-t:bgp-aggregator;
137 uses bgp-t:community;
139 list extended-communities {
140 uses bgp-t:extended-community;
142 container originator-id {
145 container cluster-id {
151 type netc:accumulated-igp-metric;
155 list unrecognized-attributes {
179 notification update {
183 grouping update-message {
184 description "Update Message";
185 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
186 uses path-attributes;
187 container withdrawn-routes {
188 leaf-list withdrawn-routes {
189 type inet:ipv4-prefix;
194 type inet:ipv4-prefix;
199 notification keepalive {
200 description "Keepalive Message";
201 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
204 notification notify {
208 grouping notify-message {
209 description "Notification Message";
210 reference "http://tools.ietf.org/html/rfc4271#section-4.5";