<p>Pau Espin Pedrol <strong>uploaded patch set #3</strong> to this change.</p><p><a href="https://gerrit.osmocom.org/11462">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Add support to test gprs IPv4 data plane<br><br>Since the modem iface and the GGSN iface are on the same host/netns,<br>it's really difficult to conveniently test data plane without getting<br>routing loops. As a result, either GGSN or modem iface must be moved to<br>a different namespace. The decision after a few discussions was finally<br>to move modem interfaces to a different netns.<br><br>Expected setup:<br>* ofono is patched to avoid removing modem if it detects<br>through udev that its net iface was removed (due to for instance, net<br>iface being moved to another netns and thus not being reachable anymore<br>by systemd-udev process running in root netns).<br>* After ofono is started (and successfully configured all the modems and<br>detected its net ifaces through syfs/udev), script "modem-netns-setup.py<br>start" which creates a netns for each modem, naming it after its usb<br>path ID. net ifaces for that modem are moved into its netns.<br>* Modem is configured to use 802-3 data format, and as a result the net<br>iface is configured through DHCP (DHCP req only replied AFTER pdp ctx is<br>activated!).<br>* Since osmo-gsm-tester knowns the modem USB path ID (available in<br>resources.conf), it can run required steps (ifup, DHCP) to configure the<br>interface. The interface name is provided by ofono to osmo-gsm-tester.<br>* As a result, any process willing to transmit data through the modem<br>must be in the modem netns.<br><br>Related: OS#2308<br>Change-Id: Icb06bdfcdd37c797be95ab5addb28da2d9f6681c<br>---<br>M example/resources.conf.prod<br>M example/resources.conf.rnd<br>M src/osmo_gsm_tester/modem.py<br>M src/osmo_gsm_tester/process.py<br>M src/osmo_gsm_tester/suite.py<br>M suites/gprs/ping.py<br>A utils/osmo-gsm-tester_netns_exec.sh<br>7 files changed, 69 insertions(+), 15 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-gsm-tester refs/changes/62/11462/3</pre><p>To view, visit <a href="https://gerrit.osmocom.org/11462">change 11462</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11462"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-gsm-tester </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>
<div style="display:none"> Gerrit-Change-Id: Icb06bdfcdd37c797be95ab5addb28da2d9f6681c </div>
<div style="display:none"> Gerrit-Change-Number: 11462 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Harald Welte <laforge@gnumonks.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>