aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'resources/libraries')
-rw-r--r--resources/libraries/python/honeycomb/NAT.py8
-rw-r--r--resources/libraries/robot/honeycomb/nat.robot2
2 files changed, 5 insertions, 5 deletions
diff --git a/resources/libraries/python/honeycomb/NAT.py b/resources/libraries/python/honeycomb/NAT.py
index 6ad9881333..759b801026 100644
--- a/resources/libraries/python/honeycomb/NAT.py
+++ b/resources/libraries/python/honeycomb/NAT.py
@@ -75,10 +75,10 @@ class NATKeywords(object):
if status_code != HTTPCodes.OK:
raise HoneycombError("Could not retrieve NAT operational data.")
- if "nat-state" not in resp.keys():
+ if "nat" not in resp.keys():
raise HoneycombError(
- "Unexpected format, response does not contain nat-state.")
- return resp['nat-state']
+ "Unexpected format, response does not contain nat container.")
+ return resp['nat']
@staticmethod
def configure_nat_entries(node, data, instance=0, entry=1):
@@ -98,7 +98,7 @@ class NATKeywords(object):
return NATKeywords._set_nat_properties(
node,
- '/nat-instances/nat-instance/{0}/'
+ '/instances/instance/{0}/'
'mapping-table/mapping-entry/{1}/'.format(instance, entry),
data)
diff --git a/resources/libraries/robot/honeycomb/nat.robot b/resources/libraries/robot/honeycomb/nat.robot
index 0ca9f8964a..c02507f412 100644
--- a/resources/libraries/robot/honeycomb/nat.robot
+++ b/resources/libraries/robot/honeycomb/nat.robot
@@ -65,7 +65,7 @@
| | [Arguments] | ${node} | ${settings} | ${instance}=0
| | ${data}= | Get NAT Oper data | ${node}
| | ${data}= | Set Variable
-| | ... | ${data['nat-instances']['nat-instance'][${instance}]['mapping-table']}
+| | ... | ${data['instances']['instance'][${instance}]['mapping-table']}
| | Compare data structures | ${data} | ${settings}
| Honeycomb configures NAT on interface