Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-506: HC Test- Update and cleanup all suites
[csit.git]
/
resources
/
libraries
/
python
/
NAT.py
diff --git
a/resources/libraries/python/NAT.py
b/resources/libraries/python/NAT.py
index
d0e01c7
..
e303816
100644
(file)
--- a/
resources/libraries/python/NAT.py
+++ b/
resources/libraries/python/NAT.py
@@
-64,7
+64,7
@@
class NATUtil(object):
"vrf": items[4]
})
else:
"vrf": items[4]
})
else:
- raise RuntimeError("Unexpected output from s
pan
_mapping_dump.")
+ raise RuntimeError("Unexpected output from s
nat
_mapping_dump.")
return data
return data
@@
-90,8
+90,9
@@
class NATUtil(object):
data = []
for line in lines:
items = line.split(" ")
data = []
for line in lines:
items = line.split(" ")
- while "" in items:
- items.remove("")
+ for trash in ("", "vat#"):
+ while trash in items:
+ items.remove(trash)
if len(items) == 0:
continue
elif len(items) == 3:
if len(items) == 0:
continue
elif len(items) == 3:
@@
-102,6
+103,6
@@
class NATUtil(object):
})
else:
raise RuntimeError(
})
else:
raise RuntimeError(
- "Unexpected output from s
pan
_interface_dump.")
+ "Unexpected output from s
nat
_interface_dump.")
return data
return data