#NEWLINE# def launch_vpn_instance( self , context ) : #NEWLINE# #INDENT# LOG . debug ( 'Launching VPN for %s' , context . project_id ) #NEWLINE# key_name = self . setup_key_pair ( context ) #NEWLINE# group_name = self . setup_security_group ( group_name ) #NEWLINE# flavor = flavors . get_flavor_by_name ( CONF . vpn_flavor ) #NEWLINE# instance_name = ( '%s%s' % ( context . project_id , CONF . vpn_key_suffix ) ) #NEWLINE# user_data = self . get_encoded_zip ( context . project_id ) #NEWLINE# return self . compute_api . create ( context , flavor , CONF . vpn_image_id , display_name = instance_name , user_data = user_data , key_name = key_name , security_group = [ group_name ] )