MVPN RFC6514 Extendend communities 50/71150/1
authorClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Thu, 19 Apr 2018 16:36:43 +0000 (18:36 +0200)
committerClaudio D. Gasparini <claudio.gasparini@pantheon.tech>
Fri, 20 Apr 2018 08:28:34 +0000 (10:28 +0200)
- Source AS
- VRF Route Import

JIRA: BGPCEP-396
Change-Id: Ib19270ad50c30d805008497e35b33fbcf7030aac
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
18 files changed:
bgp/concepts/src/main/yang/bgp-types.yang
bgp/evpn/src/main/yang/odl-bgp-evpn.yang
bgp/evpn/src/main/yang/pmsi-tunnel.yang
bgp/flowspec/src/main/yang/bgp-flowspec.yang
bgp/inet/src/main/yang/bgp-inet.yang
bgp/l3vpn/src/main/yang/bgp-vpn-ipv4.yang
bgp/l3vpn/src/main/yang/bgp-vpn-ipv6.yang
bgp/l3vpn/src/main/yang/bgp-vpn.yang
bgp/labeled-unicast/src/main/yang/bgp-labeled-unicast.yang
bgp/linkstate/src/main/yang/bgp-linkstate.yang
bgp/openconfig-api/src/main/yang/odl-bgp-default-policy.yang
bgp/openconfig-api/src/main/yang/openconfig-bgp-policy.yang
bgp/parser-api/src/main/yang/bgp-message.yang
bgp/parser-api/src/main/yang/bgp-multiprotocol.yang
bgp/rib-api/src/main/yang/bgp-peer-rpc.yang
bgp/rib-api/src/main/yang/bgp-rib.yang
bmp/bmp-api/src/main/yang/bmp-message.yang
bmp/bmp-api/src/main/yang/bmp-monitor.yang

index a12f4936ca2f73dd4a1023b9e804151c9fb66cb7..8c56c45cfbdb5c575f8525101c1ee4fb5c6ff015 100644 (file)
@@ -19,6 +19,11 @@ module bgp-types {
         accompanies this distribution, and is available at
         http://www.eclipse.org/legal/epl-v10.html";
 
+    revision "2018-03-29" {
+        description "RFC6514 Extended communities";
+        reference "https://tools.ietf.org/html/rfc6514";
+    }
+
     revision "2013-09-19" {
         description
             "Initial revision.";
@@ -265,6 +270,18 @@ module bgp-types {
         }
     }
 
+    grouping inet4-specific-extended-community-common {
+        container inet4-specific-extended-community-common {
+            leaf global-administrator {
+                type inet:ipv4-address;
+            }
+            leaf local-administrator {
+                type binary {
+                    length "2";
+                }
+            }
+        }
+    }
     grouping extended-community {
         leaf transitive {
             type boolean;
@@ -282,12 +299,23 @@ module bgp-types {
                     }
                 }
             }
+            case source-as-extended-community-case {
+                container source-as-extended-community {
+                    reference "https://tools.ietf.org/html/rfc6514#section-6";
+                    leaf global-administrator {
+                        type short-as-number;
+                    }
+                }
+            }
             case inet4-specific-extended-community-case {
                 container inet4-specific-extended-community {
+                    uses inet4-specific-extended-community-common;
                     leaf global-administrator {
+                        status deprecated;
                         type inet:ipv4-address;
                     }
                     leaf local-administrator {
+                        status deprecated;
                         type binary {
                             length "2";
                         }
@@ -362,11 +390,29 @@ module bgp-types {
                     uses as-4-spec-common;
                 }
             }
+            case source-as-4-extended-community-case {
+                container source-as-4-extended-community {
+                    reference "https://tools.ietf.org/html/rfc6514#section-6";
+                    leaf as-number {
+                        description "Carries a 4-octet Autonomous System (AS) number";
+                        reference "https://tools.ietf.org/html/rfc5668#section-2";
+
+                        mandatory true;
+                        type inet:as-number;
+                    }
+                }
+            }
             case encapsulation-case {
                 container encapsulation-extended-community {
                     uses encapsulation-extended-community;
                 }
             }
+            case vrf-route-import-extended-community-case {
+                reference "https://tools.ietf.org/html/rfc6514#section-7";
+                container vrf-route-import-extended-community {
+                    uses inet4-specific-extended-community-common;
+                }
+            }
         }
     }
 
index 4c29d0ed2233ace68e8f17f53ca63aa1c9218a0d..0061e98898b1804d73e1e5571a29e6104d39c601 100644 (file)
@@ -4,15 +4,15 @@ module odl-bgp-evpn {
     namespace "urn:opendaylight:params:xml:ns:yang:bgp-evpn";
     prefix "bgp-evpn";
 
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
     import ietf-yang-types {prefix yang; revision-date 2013-07-15;}
     import network-concepts { prefix netc; revision-date 2013-11-25; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
-    import pmsi-tunnel { prefix pmsi; revision-date 2016-08-12; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
+    import pmsi-tunnel { prefix pmsi; revision-date 2018-03-29; }
     import yang-ext { prefix ext; revision-date 2013-07-09; }
 
     organization "Cisco Systems, Inc.";
index afd6d0382613d5ebac330326500d2298919368e6..609ce76d9c72b8156c01f959af422a3edc771798 100644 (file)
@@ -4,7 +4,7 @@ module pmsi-tunnel {
     namespace "urn:opendaylight:params:xml:ns:yang:pmsi-tunnel";
     prefix "pmsi-tunnel";
 
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
     import network-concepts { prefix netc; revision-date 2013-11-25; }
     import ietf-yang-types { prefix yang; }
@@ -25,6 +25,10 @@ module pmsi-tunnel {
         accompanies this distribution, and is available at
         http://www.eclipse.org/legal/epl-v10.html";
 
+    revision "2018-03-29" {
+        description "Add RFC6514 Extended communities under bgp type.";
+    }
+
     revision "2016-08-12" {
         description "Initial revision";
         reference "https://tools.ietf.org/html/rfc6514#section-5";
index 7f13b2a426a822a476e58e325cd2b3e259b9fd7d..24bb86242269e051f0ef736f28e0700e74a15644 100644 (file)
@@ -4,10 +4,10 @@ module bgp-flowspec {
     prefix "bgp-fs";
 
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import network-concepts { prefix netc; revision-date 2013-11-25; }
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
 
index 900febf61f4e7dc966c23ec7f44a21bc6c4ddd5d..5c6758f42082391a4a3e3019a29045ef624c6a46 100644 (file)
@@ -1,27 +1,26 @@
 module bgp-inet {
-        yang-version 1;
-        namespace "urn:opendaylight:params:xml:ns:yang:bgp-inet";
-        prefix "bgp-inet";
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:bgp-inet";
+    prefix "bgp-inet";
 
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
 
     organization "Cisco Systems, Inc.";
     contact "Dana Kutenicsova <dkutenic@cisco.com>";
 
     description
-            "This module contains the concept of IPv4 and IPv6 routes,
-    split from bgp-rib and bgp-multiprotocol models.
-
-            Copyright (c)2015 Cisco Systems, Inc. All rights reserved.
-
-            This program and the accompanying materials are made available
-            under the terms of the Eclipse Public License v1.0 which
-            accompanies this distribution, and is available at
-            http://www.eclipse.org/legal/epl-v10.html";
+        "This module contains the concept of IPv4 and IPv6 routes,
+        split from bgp-rib and bgp-multiprotocol models.
+
+        Copyright (c)2015 Cisco Systems, Inc. All rights reserved.
+        This program and the accompanying materials are made available
+        under the terms of the Eclipse Public License v1.0 which
+        accompanies this distribution, and is available at
+        http://www.eclipse.org/legal/epl-v10.html";
 
     revision "2018-03-29" {
         description "Add support for add-path for all afi/safi.";
index a3a0c6202215291e66a1da2e01996f423e2f24c1..417100b7bb3db40418ff4a6089ef7f86296fdcb2 100644 (file)
@@ -2,8 +2,8 @@ module bgp-vpn-ipv4 {
     namespace "urn:opendaylight:params:xml:ns:yang:bgp-vpn-ipv4";
     prefix "bgp-vpn-ipv4";
 
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
     import bgp-vpn { prefix bgp-vpn; revision-date 2018-03-29; }
index 02626938acc5729b0f997e29c2c288713c0e3fdc..5ed3ab17ef84acb19f77ce32b4b377a99102d33d 100644 (file)
@@ -2,8 +2,8 @@ module bgp-vpn-ipv6 {
     namespace "urn:opendaylight:params:xml:ns:yang:bgp-vpn-ipv6";
     prefix "bgp-vpn-ipv6";
 
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
     import bgp-vpn { prefix bgp-vpn; revision-date 2018-03-29; }
index a344d001f158329278576c7819c110f648759ef3..51ecf1e3a5e8a4cd491a0b5adf0a54cbca2c8539 100644 (file)
@@ -3,7 +3,7 @@ module bgp-vpn {
     prefix "bgp-vpn";
 
     import bgp-labeled-unicast { prefix bgp-lu; revision-date 2018-03-29; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
 
index 8c7ae9511472a49d4c7e3bbb0e793c8fd13d6632..d911c16ed1076e9de71de6ac18dc052a8161bbd3 100644 (file)
@@ -4,10 +4,10 @@ module bgp-labeled-unicast {
     prefix "bgp-lu";
 
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import bmp-monitor { prefix bmp-mon; revision-date 2018-03-29; }
     import network-concepts { prefix netc; revision-date 2013-11-25; }
     import bgp-inet { prefix bgp-inet; revision-date 2018-03-29; }
index d0a35586fc679c5821c78e17ba43e67da30addd1..a80fcfa1e1a52eab2a9bb5f2ec604f27b544784c 100644 (file)
@@ -4,10 +4,10 @@ module bgp-linkstate {
     prefix "bgp-ls";
 
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import bgp-rib { prefix bgp-rib; revision-date 2018-03-29; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import network-concepts { prefix netc; revision-date 2013-11-25; }
     import rsvp { prefix rsvp; revision-date 2015-08-20; }
     import bgp-segment-routing { prefix bgp-sr; revision-date 2015-10-14; }
index 181a756670da30fe147ea01f56b8c0a5e1f47b84..ce24df0af67630bb6d1710a5b583eddf6e31cc13 100644 (file)
@@ -10,7 +10,7 @@ module odl-bgp-policy {
     import openconfig-routing-policy { prefix rpol; }
     import openconfig-bgp-policy { prefix bgppol; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
 
     organization "AT&T Services, Inc.";
     contact "Claudio D. Gasparini <claudio.gasparini@pantheon.tech.com>";
index d25d882730214e6733fc4d16c45c11cb8e496ebb..ad88e05b4b8ad74051599a4b5737aea1b11c90d6 100644 (file)
@@ -13,7 +13,7 @@ module openconfig-bgp-policy {
   import openconfig-policy-types { prefix pt; }
   import openconfig-bgp-types { prefix bgp-types; }
   import openconfig-extensions { prefix oc-ext; }
-  import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+  import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
 
 
   // meta
index b352195d8b8eca3569f51a321e52ca324bbbd159..0b5592be562158a1f190a8d8ed31db1752ca6bb8 100644 (file)
@@ -4,7 +4,7 @@ module bgp-message {
     prefix "bgp-msg";
 
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import network-concepts { prefix netc; revision-date 2013-11-25; }
 
     organization "Cisco Systems, Inc.";
@@ -21,6 +21,10 @@ module bgp-message {
         accompanies this distribution, and is available at
         http://www.eclipse.org/legal/epl-v10.html";
 
+    revision "2018-03-29" {
+        description "Add RFC6514 Extended communities under bgp type.";
+    }
+
     revision "2017-12-07" {
         description "Add support for add-path in base BGP NLRI.";
     }
index bcbd76243ed63d84ba210a6164d0bcd2364ae8ed..1aff2c3a613d8350f55b33890ce26b15b0ee552c 100644 (file)
@@ -4,8 +4,8 @@ module bgp-multiprotocol {
     prefix "bgp-mp";
 
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
     import yang-ext { prefix ext; revision-date 2013-07-09; }
 
     organization "Cisco Systems, Inc.";
@@ -23,6 +23,10 @@ module bgp-multiprotocol {
         accompanies this distribution, and is available at
         http://www.eclipse.org/legal/epl-v10.html";
 
+    revision "2018-03-29" {
+        description "Add RFC6514 Extended communities under bgp type.";
+    }
+
     revision "2017-12-07" {
         description "Add support for add-path in base BGP NLRI.";
     }
index bbf4d8378ee1c9b82e3fc3b081ba929937a04604..ea48805529a01003dbd65bb8e183a25d809adaf0 100644 (file)
@@ -2,9 +2,9 @@ module bgp-peer-rpc {
     namespace "urn:opendaylight:params:xml:ns:yang:bgp-peer-rpc";
     prefix "bgp-rpc";
 
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import bgp-rib { prefix rib; revision-date 2018-03-29; }
-    import yang-ext { prefix ext; revision-date "2013-07-09"; }
+    import yang-ext { prefix ext; revision-date 2013-07-09; }
 
     organization "Cisco Systems, Inc.";
     contact "Iveta Halanova <ihalanov@cisco.com>";
index 189a2e2402557e533cea085967149bd9054f81de..a0dba9fd9810838348b9295314dfdd4179090905 100644 (file)
@@ -3,8 +3,8 @@ module bgp-rib {
     namespace "urn:opendaylight:params:xml:ns:yang:bgp-rib";
     prefix "rib";
 
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
 
     organization "Cisco Systems, Inc.";
index 3047639f5a960ac28c96def95a6105cf729beefc..3462c45f53c06707cb6ed81a398038cc990d2dcd 100644 (file)
@@ -3,11 +3,11 @@ module bmp-message {
     namespace "urn:opendaylight:params:xml:ns:yang:bmp-message";
     prefix "bmp-msg";
 
-    import bgp-message { prefix bgp-msg; revision-date 2017-12-07; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
+    import bgp-message { prefix bgp-msg; revision-date 2018-03-29; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
     import ietf-yang-types { prefix yang; revision-date 2013-07-15; }
-    import bgp-types { prefix bgp-t; revision-date 2013-09-19; }
+    import bgp-types { prefix bgp-t; revision-date 2018-03-29; }
 
     organization "Cisco Systems, Inc.";
     contact "Milos Fabian <milfabia@cisco.com>";
@@ -26,6 +26,10 @@ module bmp-message {
    reference
         "https://tools.ietf.org/html/rfc7854";
 
+    revision "2018-03-29" {
+        description "Add support for add-path for all afi/safi.";
+    }
+
     revision "2017-12-07" {
         description "Add support for add-path in base BGP NLRI.";
     }
index 6864853416fbc8a8c37545e1972a1f1640e7d0f3..258489f45cbd450e3795b6f7dc7d9bc2a0ad1488 100644 (file)
@@ -4,8 +4,8 @@ module bmp-monitor {
     prefix "bmp-mon";
 
     import bgp-rib { prefix rib; revision-date 2018-03-29; }
-    import bgp-multiprotocol { prefix bgp-mp; revision-date 2017-12-07; }
-    import bmp-message { prefix bmp-msg; revision-date 2017-12-07; }
+    import bgp-multiprotocol { prefix bgp-mp; revision-date 2018-03-29; }
+    import bmp-message { prefix bmp-msg; revision-date 2018-03-29; }
     import ietf-inet-types { prefix inet; revision-date 2013-07-15; }
     import ietf-yang-types { prefix yang; revision-date 2013-07-15; }