Call ping with LANG=C to avoid erros parsing localised ping output (#1090)

Fixes: #1063

Co-authored-by: Santiago Ruano Rincón <santiago.ruano-rincon@imt-atlantique.fr>
This commit is contained in:
Santiago
2021-10-14 17:58:36 -07:00
committed by GitHub
co-authored by Santiago Ruano Rincón
parent 71d3e58d8c
commit d1b0b32c8c
+1 -1
View File
@@ -671,7 +671,7 @@ class Mininet( object ):
if timeout: if timeout:
opts = '-W %s' % timeout opts = '-W %s' % timeout
if dest.intfs: if dest.intfs:
result = node.cmd( 'ping -c1 %s %s' % result = node.cmd( 'LANG=C ping -c1 %s %s' %
(opts, dest.IP()) ) (opts, dest.IP()) )
sent, received = self._parsePing( result ) sent, received = self._parsePing( result )
else: else: