Add route-key into policies 20/70920/3
authorTomas Markovic <tomas.markovic@pantheon.tech>
Fri, 13 Apr 2018 15:33:44 +0000 (17:33 +0200)
committerLuis Gomez <ecelgp@gmail.com>
Fri, 13 Apr 2018 19:04:44 +0000 (19:04 +0000)
Mandatory fluorine argument.

Change-Id: I52f31b7170d6748b44b32030678e4b32da9189aa
Signed-off-by: Tomas Markovic <tomas.markovic@pantheon.tech>
csit/variables/bgpfunctional/bgppolicies/app_peer_rib/data.json
csit/variables/bgpfunctional/bgppolicies/app_peer_route.fluorine/location.uri [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/app_peer_route.fluorine/post_data.xml [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/app_peer_route/post_data.xml
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_1.fluorine/data.json [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_1.fluorine/location.uri [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_2.fluorine/data.json [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_2.fluorine/location.uri [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_4.fluorine/data.json
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_5.fluorine/data.json [new file with mode: 0644]
csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_5.fluorine/location.uri [new file with mode: 0644]

index be247f1a10167b4c768692569cbd54903d63c812..2145c18604d9e00f238fcf488d214ad53e180b3a 100644 (file)
@@ -15,7 +15,8 @@
                     }
                 },
                 "path-id": 0,
-                "prefix": "10.0.0.17/32"
+                "prefix": "10.0.0.17/32",
+                "route-key": "10.0.0.17/32"
             }
         ]
     }
diff --git a/csit/variables/bgpfunctional/bgppolicies/app_peer_route.fluorine/location.uri b/csit/variables/bgpfunctional/bgppolicies/app_peer_route.fluorine/location.uri
new file mode 100644 (file)
index 0000000..d60fc01
--- /dev/null
@@ -0,0 +1 @@
+restconf/config/bgp-rib:application-rib/$IP/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes
diff --git a/csit/variables/bgpfunctional/bgppolicies/app_peer_route.fluorine/post_data.xml b/csit/variables/bgpfunctional/bgppolicies/app_peer_route.fluorine/post_data.xml
new file mode 100644 (file)
index 0000000..620e2e7
--- /dev/null
@@ -0,0 +1,17 @@
+<ipv4-route xmlns="urn:opendaylight:params:xml:ns:yang:bgp-inet">
+    <path-id>0</path-id>
+    <prefix>10.0.0.17/32</prefix>
+    <route-key>10.0.0.17/32</route-key>
+    <attributes>
+        <as-path/>
+        <origin>
+            <value>igp</value>
+        </origin>
+        <local-pref>
+            <pref>100</pref>
+        </local-pref>
+        <ipv4-next-hop>
+            <global>10.11.1.1</global>
+        </ipv4-next-hop>
+    </attributes>
+</ipv4-route>
index c978f098c9930fdbead4c99aad602c012851d20b..ea058a6fab400d3bde8ca71d08cab7c59456b83e 100644 (file)
@@ -2,7 +2,7 @@
     <path-id>0</path-id>
     <prefix>10.0.0.17/32</prefix>
     <attributes>
-        <as-path></as-path>
+        <as-path/>
         <origin>
             <value>igp</value>
         </origin>
diff --git a/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_1.fluorine/data.json b/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_1.fluorine/data.json
new file mode 100644 (file)
index 0000000..e1fbdb7
--- /dev/null
@@ -0,0 +1,33 @@
+{
+    "bgp-inet:ipv4-routes": {
+        "ipv4-route": [
+            {
+                "attributes": {
+                    "as-path": {},
+                    "communities": [
+                        {
+                            "as-number": 30741,
+                            "semantics": 0
+                        },
+                        {
+                            "as-number": 30741,
+                            "semantics": 30741
+                        }
+                    ],
+                    "ipv4-next-hop": {
+                        "global": "11.0.255.254"
+                    },
+                    "local-pref": {
+                        "pref": 100
+                    },
+                    "origin": {
+                        "value": "igp"
+                    }
+                },
+                "path-id": 0,
+                "prefix": "1.1.1.0/24",
+                "route-key": "1.1.1.0/24"
+            }
+        ]
+    }
+}
diff --git a/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_1.fluorine/location.uri b/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_1.fluorine/location.uri
new file mode 100644 (file)
index 0000000..16928e5
--- /dev/null
@@ -0,0 +1 @@
+restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/peer/bgp:%2F%2F$IP/effective-rib-in/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes
diff --git a/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_2.fluorine/data.json b/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_2.fluorine/data.json
new file mode 100644 (file)
index 0000000..6a6636c
--- /dev/null
@@ -0,0 +1,57 @@
+{
+    "bgp-inet:ipv4-routes": {
+        "ipv4-route": [
+            {
+                "attributes": {
+                    "as-path": {},
+                    "ipv4-next-hop": {
+                        "global": "12.0.255.254"
+                    },
+                    "local-pref": {
+                        "pref": 100
+                    },
+                    "origin": {
+                        "value": "igp"
+                    }
+                },
+                "path-id": 0,
+                "prefix": "2.1.1.0/24",
+                "route-key": "2.1.1.0/24"
+            },
+            {
+                "attributes": {
+                    "as-path": {},
+                    "ipv4-next-hop": {
+                        "global": "12.1.255.254"
+                    },
+                    "local-pref": {
+                        "pref": 100
+                    },
+                    "origin": {
+                        "value": "igp"
+                    }
+                },
+                "path-id": 0,
+                "prefix": "2.2.1.0/24",
+                "route-key": "2.2.1.0/24"
+            },
+            {
+                "attributes": {
+                    "as-path": {},
+                    "ipv4-next-hop": {
+                        "global": "12.3.255.254"
+                    },
+                    "local-pref": {
+                        "pref": 100
+                    },
+                    "origin": {
+                        "value": "igp"
+                    }
+                },
+                "path-id": 0,
+                "prefix": "2.3.1.0/24",
+                "route-key": "2.3.1.0/24"
+            }
+        ]
+    }
+}
diff --git a/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_2.fluorine/location.uri b/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_2.fluorine/location.uri
new file mode 100644 (file)
index 0000000..16928e5
--- /dev/null
@@ -0,0 +1 @@
+restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/peer/bgp:%2F%2F$IP/effective-rib-in/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes
index fd1483a32d2068a51d35e3455846a26ae856367c..b07b4d58d8944e8a9bbb868d4191842017677a0a 100644 (file)
@@ -30,7 +30,8 @@
                     }
                 },
                 "path-id": 0,
-                "prefix": "4.1.1.0/24"
+                "prefix": "4.1.1.0/24",
+                "route-key": "4.1.1.0/24"
             }
         ]
     }
diff --git a/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_5.fluorine/data.json b/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_5.fluorine/data.json
new file mode 100644 (file)
index 0000000..ade0d26
--- /dev/null
@@ -0,0 +1,32 @@
+{
+    "bgp-inet:ipv4-routes": {
+        "ipv4-route": [
+            {
+                "attributes": {
+                    "as-path": {},
+                    "extended-communities": [
+                        {
+                            "route-target-extended-community": {
+                                "global-administrator": 31740,
+                                "local-administrator": "AAB7/A=="
+                            },
+                            "transitive": true
+                        }
+                    ],
+                    "ipv4-next-hop": {
+                        "global": "15.0.255.254"
+                    },
+                    "local-pref": {
+                        "pref": 100
+                    },
+                    "origin": {
+                        "value": "igp"
+                    }
+                },
+                "path-id": 0,
+                "prefix": "5.1.1.0/24",
+                "route-key": "5.1.1.0/24"
+            }
+        ]
+    }
+}
diff --git a/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_5.fluorine/location.uri b/csit/variables/bgpfunctional/bgppolicies/effective_rib_in/peer_5.fluorine/location.uri
new file mode 100644 (file)
index 0000000..16928e5
--- /dev/null
@@ -0,0 +1 @@
+restconf/operational/bgp-rib:bgp-rib/rib/example-bgp-rib/peer/bgp:%2F%2F$IP/effective-rib-in/tables/bgp-types:ipv4-address-family/bgp-types:unicast-subsequent-address-family/bgp-inet:ipv4-routes