nat/vty: Convert into str for the VTY command
====================================================================== ERROR: testBSCreload (__main__.TestVTYNAT) ---------------------------------------------------------------------- Traceback (most recent call last): File "./vty_test_runner.py", line 656, in testBSCreload nat_msc_ip(self, ip, port) File "./vty_test_runner.py", line 1096, in nat_msc_ip x.vty.command("msc port " + port) TypeError: cannot concatenate 'str' and 'int' objects ----------------------------------------------------------------------
This commit is contained in:
parent
4ad2e14634
commit
6d79589c87
|
@ -1093,7 +1093,7 @@ def nat_msc_ip(x, ip, port):
|
|||
x.vty.command("configure terminal")
|
||||
x.vty.command("nat")
|
||||
x.vty.command("msc ip " + ip)
|
||||
x.vty.command("msc port " + port)
|
||||
x.vty.command("msc port " + str(port))
|
||||
x.vty.command("end")
|
||||
|
||||
def data2str(d):
|
||||
|
|
Loading…
Reference in New Issue