def _set_interface_qos_config(self, interface_qos_config, interface, if_type, if_id):
    interface_qos_config = interface_qos_config[0].get(interface)
    trust = interface_qos_config[0].get('Trust mode')
    rewrite_dscp = interface_qos_config[0].get('DSCP rewrite')
    rewrite_pcp = interface_qos_config[0].get('PCP,DEI rewrite')
    self._current_config[interface] = dict(trust=trust, rewrite_dscp=rewrite_dscp, rewrite_pcp=rewrite_pcp, if_type=if_type, if_id=if_id)
def _set_interface_qos_config(self, interface_qos_config, interface, if_type, if_id):
    interface_qos_config = interface_qos_config[0].get(interface)
    trust = interface_qos_config[0].get('Trust mode')
    rewrite_dscp = interface_qos_config[0].get('DSCP rewrite')
    rewrite_pcp = interface_qos_config[0].get('PCP,DEI rewrite')
    self._current_config[interface] = dict(trust=trust, rewrite_dscp=rewrite_dscp, rewrite_pcp=rewrite_pcp, if_type=if_type, if_id=if_id)