summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-14 10:40:06 -0400
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-14 10:40:06 -0400
commit84ae27e7314ad1743c8fbdb2feae372122355066 (patch)
tree77b4c201cb449708be2078b799f9f695f6c38916
parent44ed4979c9fc6143023aad796cfd8628b08fc47a (diff)
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 ----------------------------------------------------------------------
-rw-r--r--openbsc/tests/vty_test_runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index a4cfb607f..f56b5764b 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -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):