aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-02 13:59:01 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-03 15:28:37 +0200
commite581cd18c1d89efdeb3015286b6c1d13c67cc75c (patch)
tree6b343ad442b49e6bb2e8ae8e91bd74185f75eee2 /openbsc/tests
parent1b9902c1280b3b1092b726695142a09a1edcb154 (diff)
nat/vty: Implement setting the local-call prefix and generate the regexp
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/vty_test_runner.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/openbsc/tests/vty_test_runner.py b/openbsc/tests/vty_test_runner.py
index ab9670ce0..453e1acc7 100644
--- a/openbsc/tests/vty_test_runner.py
+++ b/openbsc/tests/vty_test_runner.py
@@ -368,6 +368,15 @@ class TestVTYNAT(TestVTYGenericBSC):
res = self.vty.verify("show ussd-connection", ['The USSD side channel provider is not connected and not authorized.'])
self.assertTrue(res)
+ def testLocalPrefix(self):
+ self.vty.enable()
+ self.vty.command("configure terminal")
+ self.vty.command("nat")
+ self.vty.verify("no local-call prefix", [''])
+ self.vty.verify("local-call prefix *232334", [''])
+ self.vty.verify("no local-call prefix", [''])
+
+
def add_nat_test(suite, workdir):
if not os.path.isfile(os.path.join(workdir, "src/osmo-bsc_nat/osmo-bsc_nat")):
print("Skipping the NAT test")