def load_current_config(self):
    self._current_config = dict()
    for interface in self._required_config.get('interfaces'):
        (if_type, if_id) = self._get_interface_type(interface)
        if (not if_id):
            self._module.fail_json(msg='unsupported interface: {0}'.format(interface))
        interface_qos_config = self._show_interface_qos(if_type, if_id)
        if (interface_qos_config is not None):
            self._set_interface_qos_config(interface_qos_config, interface, if_type, if_id)
        else:
            self._module.fail_json(msg='Interface {0} does not exist on switch'.format(interface))
def load_current_config(self):
    self._current_config = dict()
    for interface in self._required_config.get('interfaces'):
        (if_type, if_id) = self._get_interface_type(interface)
        if (not if_id):
            self._module.fail_json(msg='unsupported interface: {0}'.format(interface))
        interface_qos_config = self._show_interface_qos(if_type, if_id)
        if (interface_qos_config is not None):
            self._set_interface_qos_config(interface_qos_config, interface, if_type, if_id)
        else:
            self._module.fail_json(msg='Interface {0} does not exist on switch'.format(interface))