aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/honeycomb/NAT.py
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2018-05-16 13:08:45 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-05-16 16:50:18 +0000
commitacab647f368b6483cc2cdad8a868d5a2b41d0ce9 (patch)
treec3df8f39d0f9ae197edd296ce9977f8c117fd588 /resources/libraries/python/honeycomb/NAT.py
parent8c0d241b8b4b4289be8333b7fd1d5ce0726414d6 (diff)
HC Tests: adapt NAT tests to ietf-nat@2018-02-23.yang (CSIT-1086)
Requires: https://gerrit.fd.io/r/#/c/12516/ Change-Id: Ie0a3452f51fb89914a6a0c53aa4136279a3dfb47 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'resources/libraries/python/honeycomb/NAT.py')
-rw-r--r--resources/libraries/python/honeycomb/NAT.py8
1 files changed, 4 insertions, 4 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)