1 module bgp-multiprotocol {
3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-multiprotocol";
6 import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
7 import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
8 import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
9 import yang-ext { prefix ext; revision-date 2013-07-09; }
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 {
144 container add-path-capability {
145 reference "http://tools.ietf.org/html/draft-ietf-idr-add-paths-13#section-4";
146 list address-families {
147 uses bgp-add-path-table-type;
150 container route-refresh-capability {
151 presence "Route refresh capability";
152 reference "http://tools.ietf.org/html/rfc2918";
156 augment "/bgp-msg:open/bgp-msg:bgp-parameters/bgp-msg:optional-capabilities/bgp-msg:c-parameters" {
157 uses mp-capabilities;
160 augment "/bgp-msg:update/bgp-msg:attributes" {
161 ext:augment-identifier attributes-1;
162 container mp-reach-nlri {
163 reference "http://tools.ietf.org/html/rfc4760#section-3";
168 container advertized-routes {
174 augment "/bgp-msg:update/bgp-msg:attributes" {
175 ext:augment-identifier attributes-2;
176 container mp-unreach-nlri {
177 reference "http://tools.ietf.org/html/rfc4760#section-4";
181 container withdrawn-routes {
187 notification route-refresh {
188 description "ROUTE-REFRESH message";
189 reference "https://tools.ietf.org/html/rfc2918#section-3";