mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-upf.git
synced 2025-11-03 05:23:46 +00:00
Add 'netinst' config section to osmo-upf.cfg, to define Network Instance name to local IP address mappings. For the tunmap use case (forwarding GTP tunnels), heed the Network Instance IEs in PFCP session creation and return IP addresses in F-TEIDs accordingly. Related: SYS#6192 Related: I37bebc7d6ef75c3e6ae05e81b83a1b5895839a64 (osmo-ttcn3-hacks) Change-Id: I15ee046a1c37b83b8a83527a67a6215a30106d81
81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
OsmoUPF> show ?
|
|
...
|
|
netinst List configured Network Instance entries
|
|
...
|
|
OsmoUPF> show netinst?
|
|
netinst List configured Network Instance entries
|
|
OsmoUPF> show netinst ?
|
|
[NAME] Show the Network Instance with this name (show all when omitted)
|
|
|
|
OsmoUPF> show netinst
|
|
% No Network Instance entries configured
|
|
OsmoUPF> show netinst foo
|
|
% No such Network Instance entry
|
|
|
|
OsmoUPF> enable
|
|
|
|
OsmoUPF# show netinst
|
|
% No Network Instance entries configured
|
|
|
|
OsmoUPF# configure terminal
|
|
OsmoUPF(config)# netinst
|
|
|
|
OsmoUPF(config-netinst)# list
|
|
...
|
|
clear
|
|
add NAME ADDR
|
|
show netinst [NAME]
|
|
|
|
OsmoUPF(config-netinst)# clear?
|
|
clear Remove all Network Instance entries
|
|
OsmoUPF(config-netinst)# clear ?
|
|
<cr>
|
|
|
|
OsmoUPF(config-netinst)# add?
|
|
add add Network Instance: associate a PFCP Network Instance name with a local IP address
|
|
OsmoUPF(config-netinst)# add ?
|
|
NAME Network Instance name as received in PFCP Network Instance IE
|
|
OsmoUPF(config-netinst)# add foo ?
|
|
ADDR IP address of a local interface
|
|
|
|
OsmoUPF(config-netinst)# add foo bar
|
|
% Error: netinst: cannot add foo bar: Network Instance address is not a valid IP address string
|
|
OsmoUPF(config-netinst)# add foo 1.2.3.4
|
|
OsmoUPF(config-netinst)# add foo 2.3.4.5
|
|
% Error: netinst: cannot add foo 2.3.4.5: Network Instance entry with this name already exists
|
|
OsmoUPF(config-netinst)# add bar 2.3.4.5
|
|
OsmoUPF(config-netinst)# show netinst
|
|
add foo 1.2.3.4
|
|
add bar 2.3.4.5
|
|
OsmoUPF(config-netinst)# add baz 1:2:3:4::0
|
|
OsmoUPF(config-netinst)# show netinst
|
|
add foo 1.2.3.4
|
|
add bar 2.3.4.5
|
|
add baz 1:2:3:4::0
|
|
OsmoUPF(config-netinst)# show netinst foo
|
|
add foo 1.2.3.4
|
|
OsmoUPF(config-netinst)# show netinst bar
|
|
add bar 2.3.4.5
|
|
OsmoUPF(config-netinst)# show netinst baz
|
|
add baz 1:2:3:4::0
|
|
|
|
OsmoUPF(config-netinst)# show running-config
|
|
...
|
|
netinst
|
|
add foo 1.2.3.4
|
|
add bar 2.3.4.5
|
|
add baz 1:2:3:4::0
|
|
...
|
|
|
|
OsmoUPF(config-netinst)# clear
|
|
netinst entries removed: 3
|
|
OsmoUPF(config-netinst)# show netinst
|
|
% No Network Instance entries configured
|
|
OsmoUPF(config-netinst)# clear
|
|
netinst entries removed: 0
|
|
|
|
OsmoUPF(config-netinst)# show netinst?
|
|
netinst List configured Network Instance entries
|
|
OsmoUPF(config-netinst)# show netinst ?
|
|
[NAME] Show the Network Instance with this name (show all when omitted)
|