def _gather_config_parms(self, is_provider_vlan, vlan_id):
        """Determine vlan_name, auto_create, auto_trunk from config."""
        if is_provider_vlan:
            vlan_name = cfg.CONF.ml2_cisco.provider_vlan_name_prefix
            auto_create = cfg.CONF.ml2_cisco.provider_vlan_auto_create
            auto_trunk = cfg.CONF.ml2_cisco.provider_vlan_auto_trunk
        else:
            vlan_name = cfg.CONF.ml2_cisco.vlan_name_prefix
            auto_create = True
            auto_trunk = True
        if auto_create:
            vlan_name_max_len = (
                const.NEXUS_MAX_VLAN_NAME_LEN - len(str(vlan_id)))
            if vlan_name_max_len > len(vlan_name):
                vlan_name = vlan_name[:vlan_name_max_len]
                LOG.warning(_LW("Nexus: truncating vlan name to %s"),
                            vlan_name)
            vlan_name = vlan_name + str(vlan_id)
        return vlan_name, auto_create, auto_trunk
dataset/ETHPy150Open openstack/networking-cisco/networking_cisco/plugins/ml2/drivers/cisco/nexus/mech_cisco_nexus.py/CiscoNexusMechanismDriver._gather_config_parms/swapped operands of `>`