HC Tests: adapt NAT tests to ietf-nat@2018-02-23.yang (CSIT-1086)
[csit.git] / resources / test_data / honeycomb / nat.py
index d56fcff..03544e1 100644 (file)
@@ -33,8 +33,8 @@ def get_variables(node, interface):
 
     variables = {
         "nat_empty": {
-            'nat-instances': {
-                'nat-instance': [{
+            'instances': {
+                'instance': [{
                     'id': 0}]
             }
         },
@@ -79,19 +79,21 @@ def get_variables(node, interface):
             {
                 "local_address": "192.168.0.1",
                 "remote_address": "192.168.1.1",
-                "vrf": "0"
+                "vrf": "0",
+                "protocol": "17"
             }, {
                 "local_address": "192.168.0.2",
                 "remote_address": "192.168.1.2",
-                "vrf": "0"
+                "vrf": "0",
+                "protocol": "17"
             }
         ],
         "nat_interface_vat_in": [
-            {"sw_if_index": sw_if_index,
+            {"sw_if_index": str(sw_if_index),
              "direction": "in"}
         ],
         "nat_interface_vat_out": [
-            {"sw_if_index": sw_if_index,
+            {"sw_if_index": str(sw_if_index),
              "direction": "out"}
         ]
     }