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 {
50 when "../../afi = ipv4";
51 leaf-list ipv4-prefixes {
52 type inet:ipv4-prefix;
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";
73 augment "/bgp-msg:update/bgp-msg:path-attributes" {
74 container mp-unreach-nlri {
75 reference "http://tools.ietf.org/html/rfc4760#section-4";
79 container withdrawn-routes {
85 augment "/bgp-msg:update/bgp-msg:path-attributes" {
86 container mp-reach-nlri {
87 reference "http://tools.ietf.org/html/rfc4760#section-3";
92 container advertized-routes {