osmo-gsm-tester/utils
Pau Espin fd4c144049 Add support to test gprs IPv4 data plane
Since the modem iface and the GGSN iface are on the same host/netns,
it's really difficult to conveniently test data plane without getting
routing loops. As a result, either GGSN or modem iface must be moved to
a different namespace. The decision after a few discussions was finally
to move modem interfaces to a different netns.

Expected setup:
* ofono is patched to avoid removing modem if it detects
through udev that its net iface was removed (due to for instance, net
iface being moved to another netns and thus not being reachable anymore
by systemd-udev process running in root netns).
* After ofono is started (and successfully configured all the modems and
detected its net ifaces through syfs/udev), script "modem-netns-setup.py
start" which creates a netns for each modem, naming it after its usb
path ID. net ifaces for that modem are moved into its netns.
* Modem is configured to use 802-3 data format, and as a result the net
iface is configured through DHCP (DHCP req only replied AFTER pdp ctx is
activated!).
* Since osmo-gsm-tester knowns the modem USB path ID (available in
resources.conf), it can run required steps (ifup, DHCP) to configure the
interface. The interface name is provided by ofono to osmo-gsm-tester.
* As a result, any process willing to transmit data through the modem
must be in the modem netns.

Related: OS#2308
Change-Id: Icb06bdfcdd37c797be95ab5addb28da2d9f6681c
2018-10-31 09:59:02 +01:00
..
modem-netns-setup.py utils: Introduce modem-netns-setup.py 2018-10-31 08:57:27 +00:00
osmo-gsm-tester_netns_exec.sh Add support to test gprs IPv4 data plane 2018-10-31 09:59:02 +01:00
osmo-gsm-tester_setcap_net_admin.sh utils: Add osmo-gsm-tester_setcap_net_*.sh scripts 2018-10-31 08:57:27 +00:00
osmo-gsm-tester_setcap_net_raw.sh utils: Add osmo-gsm-tester_setcap_net_*.sh scripts 2018-10-31 08:57:27 +00:00
show_usb_device.py utils: Introduce show_usb_device.py 2018-10-31 08:57:27 +00:00