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:
Holger Hans Peter Freyther 2016-04-14 10:40:06 -04:00
parent 4ad2e14634
commit 6d79589c87
1 changed files with 1 additions and 1 deletions

View File

@ -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):