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; }
9 organization "Cisco Systems, Inc.";
10 contact "Dana Kutenicsova <dkutenic@cisco.com>";
13 "This module contains the base data model of a BGP message.
14 It rolls up the definitions contained in RFC4271 and RFC4893.
16 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
18 This program and the accompanying materials are made available
19 under the terms of the Eclipse Public License v1.0 which
20 accompanies this distribution, and is available at
21 http://www.eclipse.org/legal/epl-v10.html";
23 revision "2013-09-19" {
25 "Split off basic types";
28 revision "2013-09-18" {
31 reference "RFC4271, RFC4893";
34 typedef protocol-version {
41 description "Open Message";
42 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
44 type protocol-version;
56 type inet:ipv4-address;
60 reference "http://tools.ietf.org/html/rfc3392#section-4";
63 container as4-bytes-capability {
64 reference "http://tools.ietf.org/html/rfc6793";
74 grouping path-attributes {
75 reference "http://tools.ietf.org/html/rfc4271#section-5";
77 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
79 type bgp-t:bgp-origin;
84 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
86 uses bgp-t:as-path-segment;
90 container multi-exit-disc {
91 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
96 container local-pref {
97 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
102 container atomic-aggregate {
103 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
104 presence "Atomic Aggregate attribute is present.";
106 container aggregator {
107 uses bgp-t:bgp-aggregator;
110 uses bgp-t:community;
112 list extended-communities {
113 uses bgp-t:extended-community;
120 leaf-list cluster-id {
121 type bgp-t:cluster-identifier;
125 notification update {
126 description "Update Message";
127 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
128 container path-attributes {
129 reference "http://tools.ietf.org/html/rfc4271#section-5";
130 uses path-attributes;
132 container withdrawn-routes {
133 leaf-list withdrawn-routes {
134 type inet:ipv4-prefix;
139 type inet:ipv4-prefix;
144 notification keepalive {
145 description "Keepalive Message";
146 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
149 notification notify {
150 description "Notification Message";
151 reference "http://tools.ietf.org/html/rfc4271#section-4.5";