<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13518">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ansible: gsm-tester: Remove net iface name from hash input<br><br>Otherwise every time the interface is added (ie when it goes back to<br>default netns), the generate name changes due to DEVPATH containing<br>current name at the end of the path.<br><br>Change-Id: I87c686caa23a3b39e48e0762d4323a59be7cd4b8<br>---<br>M ansible/roles/gsm-tester/files/70-net-setup-link-modems.rules<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/18/13518/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/ansible/roles/gsm-tester/files/70-net-setup-link-modems.rules b/ansible/roles/gsm-tester/files/70-net-setup-link-modems.rules</span><br><span>index a9826e2..376b214 100644</span><br><span>--- a/ansible/roles/gsm-tester/files/70-net-setup-link-modems.rules</span><br><span>+++ b/ansible/roles/gsm-tester/files/70-net-setup-link-modems.rules</span><br><span>@@ -5,6 +5,6 @@</span><br><span> </span><br><span> # If dev paths are too long (too many usb hubs in the path) (>IFNAMSIZ), ID_NET_NAME_PATH is not populated.</span><br><span> ENV{DEVTYPE}=="wwan", ENV{ID_NET_NAME_PATH}!="", NAME="$env{ID_NET_NAME_PATH}"</span><br><span style="color: hsl(0, 100%, 40%);">-ENV{DEVTYPE}=="wwan", ENV{ID_NET_NAME_PATH}=="", PROGRAM="/bin/sh -ec 'echo ${DEVPATH} | sha1sum | head -c14'", NAME="r$result"</span><br><span style="color: hsl(120, 100%, 40%);">+ENV{DEVTYPE}=="wwan", ENV{ID_NET_NAME_PATH}=="", PROGRAM="/bin/sh -ec 'echo ${DEVPATH} | xargs dirname | sha1sum | head -c14'", NAME="r$result"</span><br><span> </span><br><span> LABEL="net_setup_link_end"</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13518">change 13518</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/13518"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-ci </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I87c686caa23a3b39e48e0762d4323a59be7cd4b8 </div>
<div style="display:none"> Gerrit-Change-Number: 13518 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>