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 2013-09-19; }
8 import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
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 "2013-09-19" {
28 "Split off basic types";
31 revision "2013-09-18" {
37 typedef send-receive {
39 enum receive { value 1; }
40 enum send { value 2; }
41 enum both { value 3; }
45 grouping bgp-table-type {
48 base bgp-t:address-family;
53 base bgp-t:subsequent-address-family;
58 grouping bgp-add-path-table-type {
65 grouping destination {
66 choice destination-type {
71 grouping mp-capabilities {
72 container multiprotocol-capability {
73 reference "http://tools.ietf.org/html/rfc4760#section-8";
76 container graceful-restart-capability {
77 presence "indicates a graceful restart capability";
79 reference "http://tools.ietf.org/html/rfc4724#section-3";
104 bit forwarding-state {
112 container add-path-capability {
113 reference "http://tools.ietf.org/html/draft-ietf-idr-add-paths-13#section-4";
114 list address-families {
115 uses bgp-add-path-table-type;
118 container route-refresh-capability {
119 presence "Route refresh capability";
120 reference "http://tools.ietf.org/html/rfc2918";
124 augment "/bgp-msg:open/bgp-msg:bgp-parameters/bgp-msg:optional-capabilities/bgp-msg:c-parameters" {
125 uses mp-capabilities;
128 augment "/bgp-msg:update/bgp-msg:attributes" {
129 ext:augment-identifier attributes-1;
130 container mp-reach-nlri {
131 reference "http://tools.ietf.org/html/rfc4760#section-3";
136 container advertized-routes {
142 augment "/bgp-msg:update/bgp-msg:attributes" {
143 ext:augment-identifier attributes-2;
144 container mp-unreach-nlri {
145 reference "http://tools.ietf.org/html/rfc4760#section-4";
149 container withdrawn-routes {
155 notification route-refresh {
156 description "ROUTE-REFRESH message";
157 reference "https://tools.ietf.org/html/rfc2918#section-3";