3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-message";
6 import ietf-inet-types {
8 revision-date 2010-09-24;
11 import bgp-types { prefix bgp-t; }
13 organization "Cisco Systems, Inc.";
14 contact "Dana Kutenicsova <dkutenic@cisco.com>";
17 "This module contains the base data model of a BGP message.
18 It rolls up the definitions contained in RFC4271 and RFC4893.
20 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
22 This program and the accompanying materials are made available
23 under the terms of the Eclipse Public License v1.0 which
24 accompanies this distribution, and is available at
25 http://www.eclipse.org/legal/epl-v10.html";
27 revision "2013-09-18" {
30 reference "RFC4271, RFC4893";
33 typedef protocol-version {
40 description "Open Message";
41 reference "http://tools.ietf.org/html/rfc4271#section-4.2";
43 type protocol-version;
55 type inet:ipv4-address;
58 list optional-parameters {
59 reference "http://tools.ietf.org/html/rfc3392#section-4";
62 reference "http://tools.ietf.org/html/rfc6793";
71 grouping path-attributes {
72 reference "http://tools.ietf.org/html/rfc4271#section-5";
74 reference "http://tools.ietf.org/html/rfc4271#section-5.1.1";
76 type bgp-t:bgp-origin;
81 reference "http://tools.ietf.org/html/rfc4271#section-5.1.2";
83 uses bgp-t:as-path-segment;
87 container multi-exit-disc {
88 reference "http://tools.ietf.org/html/rfc4271#section-5.1.4";
93 container local-pref {
94 reference "http://tools.ietf.org/html/rfc4271#section-5.1.5";
99 container atomic-aggregate {
100 reference "http://tools.ietf.org/html/rfc4271#section-5.1.6";
101 presence "Atomic Aggregate attribute is present.";
103 container aggregator {
104 uses bgp-t:bgp-aggregator;
107 uses bgp-t:community;
109 list extended-communities {
110 uses bgp-t:extended-community;
112 container cluster-id {
114 type bgp-t:cluster-identifier;
119 notification update {
120 description "Update Message";
121 reference "http://tools.ietf.org/html/rfc4271#section-4.3";
122 container path-attributes {
123 reference "http://tools.ietf.org/html/rfc4271#section-5";
124 uses path-attributes;
126 container withdrawn-routes {
127 leaf-list withdrawn-routes {
128 type inet:ipv4-prefix;
133 type inet:ipv4-prefix;
138 notification keepalive {
139 description "Keepalive Message";
140 reference "http://tools.ietf.org/html/rfc4271#section-4.4";
143 notification notify {
144 description "Notification Message";
145 reference "http://tools.ietf.org/html/rfc4271#section-4.5";