BUG-4617: BGP-FS redirect to next-hop IP action 28/29528/3
authorMilos Fabian <milfabia@cisco.com>
Wed, 11 Nov 2015 02:03:52 +0000 (03:03 +0100)
committerMilos Fabian <milfabia@cisco.com>
Wed, 11 Nov 2015 22:21:22 +0000 (23:21 +0100)
-added yang data model for "redirect to IP extended communities"

ref.: https://tools.ietf.org/html/draft-ietf-idr-flowspec-redirect-ip-02#section-3

Change-Id: I80e74b884e87e2fdbcc0a9feb0ed5f873f8abbb7
Signed-off-by: Milos Fabian <milfabia@cisco.com>
bgp/flowspec/src/main/yang/bgp-flowspec.yang

index 97b918e71d6901aeccb03bc691bc8da714c4cd03..71bb465a63d44a0b0d7ae9fdefd6af7b8375fbb6 100644 (file)
@@ -361,6 +361,18 @@ module bgp-flowspec {
         }
     }
 
+    grouping redirect-ip-nh-extended-community {
+        reference "https://tools.ietf.org/html/draft-ietf-idr-flowspec-redirect-ip-02";
+        container redirect-ip-nh-extended-community {
+            leaf next-hop-address {
+                type inet:ip-address;
+            }
+            leaf copy {
+                type boolean;
+            }
+        }
+    }
+
     grouping flowspec-routes {
         container flowspec-routes {
             list flowspec-route {
@@ -396,6 +408,9 @@ module bgp-flowspec {
                         case redirect-as4-extended-community-case {
                             uses redirect-as4-extended-community;
                         }
+                        case redirect-ip-nh-extended-community-case {
+                            uses redirect-ip-nh-extended-community;
+                        }
                     }
                 }
             }
@@ -437,6 +452,9 @@ module bgp-flowspec {
                         case redirect-as4-extended-community-case {
                             uses redirect-as4-extended-community;
                         }
+                        case redirect-ip-nh-extended-community-case {
+                            uses redirect-ip-nh-extended-community;
+                        }
                     }
                 }
             }
@@ -463,6 +481,9 @@ module bgp-flowspec {
         case redirect-as4-extended-community-case {
             uses redirect-as4-extended-community;
         }
+        case redirect-ip-nh-extended-community-case {
+            uses redirect-ip-nh-extended-community;
+        }
     }
 
     augment "/bgp-rib:application-rib/bgp-rib:tables/bgp-rib:routes" {