def _nonexistent_flavor_id(self):
        nonexistent_flavor = 2700
        flavor_ids = [value["id"] for key, value in\
                    instance_types.get_all_types().iteritems()]
        while nonexistent_flavor in flavor_ids:
            nonexistent_flavor += 1
        else:
            return nonexistent_flavor
Port number format validator
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_instance_types.py/InstanceTypeTestCase._nonexistent_flavor_id--crossover with--dataset/ETHPy150Open securitykiss-com/rfw/rfw/iputil.py/validate_port