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; }
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
16 and draft-ietf-idr-ls-distribution-03.
18 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
20 This program and the accompanying materials are made available
21 under the terms of the Eclipse Public License v1.0 which
22 accompanies this distribution, and is available at
23 http://www.eclipse.org/legal/epl-v10.html";
25 revision "2018-03-29" {
26 description "Add RFC6514 Extended communities under bgp type.";
29 revision "2017-12-07" {
30 description "Add support for add-path in base BGP NLRI.";
33 revision "2013-09-19" {
35 "Split off basic types";
38 revision "2013-09-18" {
44 typedef send-receive {
46 enum receive { value 1; }
47 enum send { value 2; }
48 enum both { value 3; }
52 grouping bgp-table-type {
55 base bgp-t:address-family;
60 base bgp-t:subsequent-address-family;
65 grouping bgp-add-path-table-type {
72 grouping destination {
73 choice destination-type {
78 grouping mp-capabilities {
79 container multiprotocol-capability {
80 reference "http://tools.ietf.org/html/rfc4760#section-8";
83 container graceful-restart-capability {
84 presence "indicates a graceful restart capability";
86 reference "http://tools.ietf.org/html/rfc4724#section-3";
111 bit forwarding-state {
119 container ll-graceful-restart-capability {
120 reference "https://tools.ietf.org/html/draft-uttaro-idr-bgp-persistence-04";
128 bit forwarding-state {
134 leaf long-lived-stale-time {
143 container add-path-capability {
144 reference "http://tools.ietf.org/html/draft-ietf-idr-add-paths-13#section-4";
145 list address-families {
146 uses bgp-add-path-table-type;
149 container route-refresh-capability {
150 presence "Route refresh capability";
151 reference "http://tools.ietf.org/html/rfc2918";
155 augment "/bgp-msg:open/bgp-msg:bgp-parameters/bgp-msg:optional-capabilities/bgp-msg:c-parameters" {
156 uses mp-capabilities;
159 augment "/bgp-msg:update/bgp-msg:attributes" {
160 ext:augment-identifier attributes-1;
161 container mp-reach-nlri {
162 reference "http://tools.ietf.org/html/rfc4760#section-3";
167 container advertized-routes {
173 augment "/bgp-msg:update/bgp-msg:attributes" {
174 ext:augment-identifier attributes-2;
175 container mp-unreach-nlri {
176 reference "http://tools.ietf.org/html/rfc4760#section-4";
180 container withdrawn-routes {
186 notification route-refresh {
187 description "ROUTE-REFRESH message";
188 reference "https://tools.ietf.org/html/rfc2918#section-3";