Merge pull request #603 from oliviertilmans/patch-1

TCIntf: Don't delete a non-existing root qdisc
This commit is contained in:
lantz
2016-08-01 15:24:20 -07:00
committed by GitHub
+1 -1
View File
@@ -330,7 +330,7 @@ class TCIntf( Intf ):
# Clear existing configuration
tcoutput = self.tc( '%s qdisc show dev %s' )
if "priomap" not in tcoutput:
if "priomap" not in tcoutput and "noqueue" not in tcoutput:
cmds = [ '%s qdisc del dev %s root' ]
else:
cmds = []