def _add_no_rewrite_cmd(self, if_type, if_id, interface, rewrite_type, current_rewrite):
    if ((rewrite_type == self.REWRITE_PCP) and (current_rewrite == 'enabled')):
        self._commands.append(self.NO_REWRITE_PCP_CMD.format(if_type, if_id))
        self._current_config[interface]['rewrite_pcp'] = 'disabled'
    elif ((rewrite_type == self.REWRITE_DSCP) and (current_rewrite == 'enabled')):
        self._commands.append(self.NO_REWRITE_DSCP_CMD.format(if_type, if_id))
        self._current_config[interface]['rewrite_dscp'] = 'disabled'
def _add_no_rewrite_cmd(self, if_type, if_id, interface, rewrite_type, current_rewrite):
    if ((rewrite_type == self.REWRITE_PCP) and (current_rewrite == 'enabled')):
        self._commands.append(self.NO_REWRITE_PCP_CMD.format(if_type, if_id))
        self._current_config[interface]['rewrite_pcp'] = 'disabled'
    elif ((rewrite_type == self.REWRITE_DSCP) and (current_rewrite == 'enabled')):
        self._commands.append(self.NO_REWRITE_DSCP_CMD.format(if_type, if_id))
        self._current_config[interface]['rewrite_dscp'] = 'disabled'