aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/vty_test_runner.py
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-14 08:50:25 -0400
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-04-14 08:51:57 -0400
commitf1a61bb99f13b054d912f47dac90a15b2cf56651 (patch)
tree70fb35a1ad3a910955f191ce304f10d4c057da63 /openbsc/tests/vty_test_runner.py
parent4936448761a6ca42ab661d130f5202dfdabca426 (diff)
nat/vty: Don't assume one can magically add IPv4 addresses to lo
Don't assume that one can just bind to a local address that has not been configured. Remove the unspecific comment as I don't know to which other tests it is referred to. This should fix: ====================================================================== ERROR: testBSCreload (__main__.TestVTYNAT) ---------------------------------------------------------------------- Traceback (most recent call last): File "./vty_test_runner.py", line 655, in testBSCreload msc = nat_msc_test(self, ip) File "./vty_test_runner.py", line 1102, in nat_msc_test msc.bind((ip, 5000)) File "<string>", line 1, in bind error: [Errno 99] Cannot assign requested address ----------------------------------------------------------------------
Diffstat (limited to 'openbsc/tests/vty_test_runner.py')
-rw-r--r--openbsc/tests/vty_test_runner.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 59fdd2f93..11b788bcc 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -627,8 +627,7 @@ class TestVTYNAT(TestVTYGenericBSC):
return (4244, "src/osmo-bsc_nat/osmo-bsc_nat", "OsmoBSCNAT", "nat")
def testBSCreload(self):
- # use separate ip to avoid interference with other tests
- ip = "127.0.0.4"
+ ip = "127.0.0.1"
self.vty.enable()
bscs1 = self.vty.command("show bscs-config")
nat_bsc_reload(self)