def generate_commands(self):
    trust = self._required_config.get('trust')
    rewrite_pcp = self._required_config.get('rewrite_pcp')
    rewrite_dscp = self._required_config.get('rewrite_dscp')
    for interface in self._required_config.get('interfaces'):
        (ignored1, ignored2, current_trust, if_type, if_id) = self._get_current_rewrite_config(interface)
        self._add_interface_trust_cmds(if_type, if_id, interface, trust, current_trust)
        self._add_interface_rewrite_cmds(if_type, if_id, interface, rewrite_pcp, rewrite_dscp)
def generate_commands(self):
    trust = self._required_config.get('trust')
    rewrite_pcp = self._required_config.get('rewrite_pcp')
    rewrite_dscp = self._required_config.get('rewrite_dscp')
    for interface in self._required_config.get('interfaces'):
        (ignored1, ignored2, current_trust, if_type, if_id) = self._get_current_rewrite_config(interface)
        self._add_interface_trust_cmds(if_type, if_id, interface, trust, current_trust)
        self._add_interface_rewrite_cmds(if_type, if_id, interface, rewrite_pcp, rewrite_dscp)