summaryrefslogtreecommitdiffstats
path: root/openbsc/tests/vty_test_runner.py
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-07-04 11:09:07 +0200
committerHarald Welte <laforge@gnumonks.org>2016-07-11 19:18:17 +0000
commit176b62a80c0170f1b9a1578d0b16c3ef27cf1a8f (patch)
tree657b3b698ffff09be025a1c2bf4a64a32df93f8d /openbsc/tests/vty_test_runner.py
parente6052c4cc756f7d3a5023a0ba57fe8d80783967c (diff)
SGSN: prevent starting with inconsistent config
Previously it was possible to start osmo-sgsn with "auth-policy remote" but without "gsup remote-*" which resulted in broken setup: no MS could perform GPRS ATTACH. Add consistency check to vty code to fix this. Related: OS#1582 Change-Id: Ie4296e7d99d7833f7d828b0196435ea81097cf6e
Diffstat (limited to 'openbsc/tests/vty_test_runner.py')
-rw-r--r--openbsc/tests/vty_test_runner.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index 23939e84c..00eae70f2 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -1086,6 +1086,8 @@ class TestVTYSGSN(TestVTYGenericBSC):
self.assertTrue(self.vty.verify('auth-policy closed', ['']))
res = self.vty.command("show running-config")
self.assert_(res.find('auth-policy closed') > 0)
+ self.assertTrue(self.vty.verify('gsup remote-ip 127.0.0.4', ['']))
+ self.assertTrue(self.vty.verify('gsup remote-port 2222', ['']))
self.assertTrue(self.vty.verify('auth-policy remote', ['']))
res = self.vty.command("show running-config")
self.assert_(res.find('auth-policy remote') > 0)