def create_patch_ports(source, destination):
 common = common_utils.get_rand_name(max_length=4, prefix='')
 prefix = ('%s-%s-' % (PATCH_PREFIX, common))
 source_name = common_utils.get_rand_device_name(prefix=prefix)
 destination_name = common_utils.get_rand_device_name(prefix=prefix)
 source.add_patch_port(source_name, destination_name)
 destination.add_patch_port(destination_name, source_name)

def create_patch_ports ( source , destination ) : common = common_utils . get_rand_name ( max_length = 4 , prefix = '' ) prefix = ( '%s-%s-' % ( PATCH_PREFIX , common ) ) source_name = common_utils . get_rand_device_name ( prefix = prefix ) destination_name = common_utils . get_rand_device_name ( prefix = prefix ) source . add_patch_port ( source_name , destination_name ) destination . add_patch_port ( destination_name , source_name )
hook up two ovs bridges .