Requires: https://gerrit.fd.io/r/#/c/12516/
Change-Id: Ie0a3452f51fb89914a6a0c53aa4136279a3dfb47
Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
if status_code != HTTPCodes.OK:
raise HoneycombError("Could not retrieve NAT operational data.")
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():
- "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):
@staticmethod
def configure_nat_entries(node, data, instance=0, entry=1):
return NATKeywords._set_nat_properties(
node,
return NATKeywords._set_nat_properties(
node,
- '/nat-instances/nat-instance/{0}/'
+ '/instances/instance/{0}/'
'mapping-table/mapping-entry/{1}/'.format(instance, entry),
data)
'mapping-table/mapping-entry/{1}/'.format(instance, entry),
data)
| | [Arguments] | ${node} | ${settings} | ${instance}=0
| | ${data}= | Get NAT Oper data | ${node}
| | ${data}= | Set Variable
| | [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
| | Compare data structures | ${data} | ${settings}
| Honeycomb configures NAT on interface
-/restconf/config{odl_url_part}/ietf-nat:nat-config
\ No newline at end of file
+/restconf/config{odl_url_part}/ietf-nat:nat
\ No newline at end of file
-/restconf/operational{odl_url_part}/ietf-nat:nat-state
\ No newline at end of file
+/restconf/operational{odl_url_part}/ietf-nat:nat
\ No newline at end of file
variables = {
"nat_empty": {
variables = {
"nat_empty": {
- 'nat-instances': {
- 'nat-instance': [{
+ 'instances': {
+ 'instance': [{