'Unfortunately user switch and Mininet are fighting
over tc queuing disciplines. To resolve the conflict,
we re-create the user switch\'s configuration, but as a
leaf of the TCIntf-created configuration.'

@staticmethod
def TCReapply(intf):

    if isinstance(intf, TCIntf):
        ifspeed = 10000000000
        minspeed = (ifspeed * 0.001)
        res = intf.config(**intf.params)
        if (res is None):
            return
        parent = res['parent']
        intf.tc((('%s    qdisc    add    dev    %s    ' + parent) + '    handle    1:    htb    default    0xfffe'))
        intf.tc(('%s    class    add    dev    %s    classid    1:0xffff    parent    1:    htb    rate    ' + str(ifspeed)))
        intf.tc((((('%s    class    add    dev    %s    classid    1:0xfffe    parent    1:0xffff    ' + 'htb    rate    ') + str(minspeed)) + '    ceil    ') + str(ifspeed)))
