@staticmethod
def _get_qdisc_type(intf: str) -> Optional[str]:
    tc_cmd = 'tc qdisc show dev {}'.format(intf)
    args = argSplit(tc_cmd)
    try:
        raw_output = subprocess.check_output(args)
        output = raw_output.decode('utf-8')
        config = output.split()
        try:
            return config[1]
        except IndexError:
            LOG.error('could not qdisc type: %s', output)
    except subprocess.CalledProcessError:
        LOG.error('Exception dumping Qos State for %s', tc_cmd)
@staticmethod
def _get_qdisc_type(intf: str) -> Optional[str]:
    tc_cmd = 'tc qdisc show dev {}'.format(intf)
    args = argSplit(tc_cmd)
    try:
        raw_output = subprocess.check_output(args)
        output = raw_output.decode('utf-8')
        config = output.split()
        try:
            return config[1]
        except IndexError:
            LOG.error('could not qdisc type: %s', output)
    except subprocess.CalledProcessError:
        LOG.error('Exception dumping Qos State for %s', tc_cmd)