Use NWI from config file when no UPF profile is associated
Description
- When NRF is not used, previously no NWI was sent over PFCP and VPP-UPF requires the NWI -> No PDU session
- Also, the
USE_NETWORKING_INSTANCE
is confusing and global, so we can never run SPGWU and VPP-UPF together
Changes
- Remove
USE_NETWORKING_INSTANCE
- New behavior:
- NRF is used: NWI is sent according to NRF signaling. If it is there, it is sent, if not, then not.
- NRF is not used: NWIs from NWI_LIST are used. If it is empty/missing, no NWIs are sent.
Because we set NWI List per default, it is now also here for SPGWU. But it just ignores the values, so it is fine. If we want to remove it, I suggest removing the default value in the config.
Tests
I tested PDU session with gnbsim in the following scenarios:
- vpp-upf scenario without NRF
- vpp-upf scenario with NRF
- spgwu scenario without NRF
- spgwu scenario with NRF
Also, I tested with a configuration where the UPF IPV4ADDRESS is not set to show that we don't need to resolve DNS name in the get_nwi
function, as it is done before.