1 module bgp-multiprotocol {
3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-multiprotocol";
6 import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
7 import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
8 import yang-ext { prefix ext; revision-date 2013-07-09; }
9 import odl-uint24 { prefix uint24; }
11 organization "Cisco Systems, Inc.";
12 contact "Dana Kutenicsova <dkutenic@cisco.com>";
15 "This module contains the base data model of a BGP message.
16 It rolls up the definitions contained in RFC4271
17 and draft-ietf-idr-ls-distribution-03.
19 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
21 This program and the accompanying materials are made available
22 under the terms of the Eclipse Public License v1.0 which
23 accompanies this distribution, and is available at
24 http://www.eclipse.org/legal/epl-v10.html";
26 revision "2018-03-29" {
27 description "Add RFC6514 Extended communities under bgp type.";
30 revision "2017-12-07" {
31 description "Add support for add-path in base BGP NLRI.";
34 revision "2013-09-19" {
36 "Split off basic types";
39 revision "2013-09-18" {
45 typedef send-receive {
47 enum receive { value 1; }
48 enum send { value 2; }
49 enum both { value 3; }
53 grouping bgp-table-type {
56 base bgp-t:address-family;
61 base bgp-t:subsequent-address-family;
66 grouping bgp-add-path-table-type {
73 grouping destination {
74 choice destination-type {
79 grouping mp-capabilities {
80 container multiprotocol-capability {
81 reference "http://tools.ietf.org/html/rfc4760#section-8";
84 container graceful-restart-capability {
85 presence "indicates a graceful restart capability";
87 reference "http://tools.ietf.org/html/rfc4724#section-3";
112 bit forwarding-state {
120 container ll-graceful-restart-capability {
121 reference "https://tools.ietf.org/html/draft-uttaro-idr-bgp-persistence-04";
129 bit forwarding-state {
135 leaf long-lived-stale-time {
142 container add-path-capability {
143 reference "http://tools.ietf.org/html/draft-ietf-idr-add-paths-13#section-4";
144 list address-families {
145 uses bgp-add-path-table-type;
148 container route-refresh-capability {
149 presence "Route refresh capability";
150 reference "http://tools.ietf.org/html/rfc2918";
154 augment "/bgp-msg:open/bgp-msg:bgp-parameters/bgp-msg:optional-capabilities/bgp-msg:c-parameters" {
155 uses mp-capabilities;
158 augment "/bgp-msg:update/bgp-msg:attributes" {
159 ext:augment-identifier attributes-1;
160 container mp-reach-nlri {
161 reference "http://tools.ietf.org/html/rfc4760#section-3";
166 container advertized-routes {
172 augment "/bgp-msg:update/bgp-msg:attributes" {
173 ext:augment-identifier attributes-2;
174 container mp-unreach-nlri {
175 reference "http://tools.ietf.org/html/rfc4760#section-4";
179 container withdrawn-routes {
185 notification route-refresh {
186 description "ROUTE-REFRESH message";
187 reference "https://tools.ietf.org/html/rfc2918#section-3";