1 module bgp-multiprotocol {
3 namespace "urn:opendaylight:params:xml:ns:yang:bgp-multiprotocol";
6 import ietf-inet-types {
8 revision-date 2010-09-24;
10 import bgp-message { prefix bgp-msg; }
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
19 and draft-ietf-idr-ls-distribution-03.
21 Copyright (c)2013 Cisco Systems, Inc. All rights reserved.
23 This program and the accompanying materials are made available
24 under the terms of the Eclipse Public License v1.0 which
25 accompanies this distribution, and is available at
26 http://www.eclipse.org/legal/epl-v10.html";
28 revision "2013-09-18" {
34 grouping bgp-table-type {
37 base bgp-t:address-family;
42 base bgp-t:subsequent-address-family;
47 grouping destination {
48 choice destination-type {
49 case destination-ipv4 {
50 when "../../afi = ipv4";
51 leaf-list ipv4-prefixes {
52 type inet:ipv4-prefix;
55 case destination-ipv6 {
56 when "../../afi = ipv6";
57 leaf-list ipv6-prefixes {
58 type inet:ipv6-prefix;
64 augment "/bgp-msg:open/bgp-msg:bgp-parameters/bgp-msg:c-parameters" {
65 case c-multiprotocol {
66 container multiprotocol-capability {
67 reference "http://tools.ietf.org/html/rfc4760#section-8";
71 case c-graceful-restart {
72 container graceful-restart-capability {
73 reference "http://tools.ietf.org/html/rfc4724#section-3";
98 bit forwarding-state {
109 augment "/bgp-msg:update/bgp-msg:path-attributes" {
110 container mp-unreach-nlri {
111 reference "http://tools.ietf.org/html/rfc4760#section-4";
115 container withdrawn-routes {
121 augment "/bgp-msg:update/bgp-msg:path-attributes" {
122 container mp-reach-nlri {
123 reference "http://tools.ietf.org/html/rfc4760#section-3";
128 container advertized-routes {