examples/sgsn: Use osmo-hlr with auth-policy remote by default

For the vty tests, add osmo-sgsn-accept-all.cfg (that does not need an HLR) and
use in vty_test_runner.py, otherwise the 'show sgsn' command will reply that it
could not connect to the HLR, failing the vty test which expects empty.

Change-Id: Ie3b2013198d3e2b780a4e31c36b89b58129dcacd
changes/21/3421/4
Daniel Willmann 6 years ago committed by Neels Hofmeyr
parent b81d3bdad5
commit 8dc8ea435f
  1. 27
      doc/examples/osmo-sgsn/osmo-sgsn-accept-all.cfg
  2. 3
      doc/examples/osmo-sgsn/osmo-sgsn.cfg
  3. 2
      tests/vty_test_runner.py

@ -0,0 +1,27 @@
!
! Osmocom SGSN configuration
!
!
line vty
no login
!
sgsn
gtp local-ip 127.0.0.1
ggsn 0 remote-ip 127.0.0.2
ggsn 0 gtp-version 1
auth-policy accept-all
!
ns
timer tns-block 3
timer tns-block-retries 3
timer tns-reset 3
timer tns-reset-retries 3
timer tns-test 30
timer tns-alive 3
timer tns-alive-retries 10
encapsulation udp local-ip 127.0.0.1
encapsulation udp local-port 23000
encapsulation framerelay-gre enabled 0
!
bssgp
!

@ -9,6 +9,9 @@ sgsn
gtp local-ip 127.0.0.1
ggsn 0 remote-ip 127.0.0.2
ggsn 0 gtp-version 1
auth-policy remote
gsup remote-ip 127.0.0.1
gsup remote-port 2222
!
ns
timer tns-block 3

@ -829,7 +829,7 @@ class TestVTYSGSN(TestVTYGenericBSC):
def vty_command(self):
return ["./src/gprs/osmo-sgsn", "-c",
"doc/examples/osmo-sgsn/osmo-sgsn.cfg"]
"doc/examples/osmo-sgsn/osmo-sgsn-accept-all.cfg"]
def vty_app(self):
return (4245, "./src/gprs/osmo-sgsn", "OsmoSGSN", "sgsn")

Loading…
Cancel
Save