<s> from cloudferry . lib . base . action import action <EOL> from cloudferry . lib . os . network import network_utils <EOL> from cloudferry . lib . utils import log <EOL> from cloudferry . lib . utils import utils <EOL> LOG = log . getLogger ( __name__ ) <EOL> class PrepareNetworks ( action . Action ) : <EOL> """<STR_LIT>""" <EOL> def run ( self , info = None , ** kwargs ) : <EOL> network_resource = self . cloud . resources [ utils . NETWORK_RESOURCE ] <EOL> identity_resource = self . cloud . resources [ utils . IDENTITY_RESOURCE ] <EOL> info_compute = network_utils . prepare_networks ( <EOL> info , <EOL> self . cfg . migrate . keep_ip , <EOL> network_resource , <EOL> identity_resource <EOL> ) <EOL> return { <EOL> '<STR_LIT:info>' : info_compute <EOL> } </s>
