Bug #3281
closedAdd ctrl interface to osmo-gbproxy
100%
Description
We want to be able to query the NS status from osmo-gbproxy. Basically have the information from show ns exported:
OsmoGbProxy> show ns Encapsulation NS-UDP-IP Local IP: 0.0.0.0, UDP Port: 23000 Encapsulation NS-FR-GRE-IP Local IP: 0.0.0.0 NSEI 110, NS-VC 110, Remote: BSS , ALIVE UNBLOCKED, UDP 127.0.0.1:23001 NSEI 18025, NS-VC 18025, Remote: SGSN, ALIVE UNBLOCKED, UDP 151.80.237.229:23000
Especially whether NSEI/NS-VS is dead/alive and (un)blocked
Updated by daniel almost 6 years ago
- Status changed from New to In Progress
- Assignee changed from 4368 to daniel
- % Done changed from 0 to 70
Submitted in https://gerrit.osmocom.org/#/c/osmo-sgsn/+/9402
The ns-state command now replies with nsei, nsvci, local state, role, remote state of all NSVCs.
The gbproxy-state command replies with nsei, bvci, mcc, mnc, lac, rac, and state of each peer.
If there are no entries an error is returned.
daniel@adrastea:~/scm/osmo/osmo-python-tests/scripts(master) » ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g ns-state Got message: b'GET_REPLY 23 gb-status 101,101,DEAD,BLOCKED,SGSN,DEAD,UNBLOCKED;' daniel@adrastea:~/scm/osmo/osmo-python-tests/scripts(master) » ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g gbproxy-state Got message: b'ERROR 23 No peers found'
Updated by daniel almost 6 years ago
- Status changed from In Progress to Resolved
- % Done changed from 70 to 100
The implementation of the commands changed:
The two commands are now named "nsvc-state" and "gbproxy-state"
The "nsvc-state" command replies with nsei, nsvci, local state, role, remote state of all NSVCs. The "gbproxy-state" command replies with nsei, bvci, mcc, mnc, lac, rac, and state of each peer. Entries are separated by a newline '\n' character. If there are no entries an empty list is returned. This behaviour is similar to that of the subscriber-list-active-v1 command in osmo-sgsn.
$ ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g nsvc-state Got message: b'GET_REPLY 23 nsvc-state 101,101,DEAD,BLOCKED,SGSN,DEAD,UNBLOCKED\n' $ ./osmo_ctrl.py -d 127.0.0.1 -p 4263 -g gbproxy-state Got message: b'GET_REPLY 4871085901306801158 gbproxy-state '
Updated by laforge almost 4 years ago
- Project changed from OsmoSGSN to osmo-gbproxy
- Category deleted (
299)