#NEWLINE# def _setup_network_on_host( self , context , network ) : #NEWLINE# #INDENT# 'Sets up network on this host.' #NEWLINE# network . dhcp_server = self . _get_dhcp_ip ( context , network ) #NEWLINE# self . _initialize_network ( network ) #NEWLINE# if ( ( not CONF . fake_network ) and network . enable_dhcp ) : #NEWLINE# #INDENT# dev = self . driver . get_dev ( context ) #NEWLINE# elevated = context . elevated ( ) #NEWLINE# self . driver . update_dhcp ( elevated , dev , network ) #NEWLINE# if CONF . use_ipv6 : #NEWLINE# #INDENT# self . driver . update_ra ( context , dev , network ) #NEWLINE# gateway = utils . get_my_linklocal ( dev ) #NEWLINE# network . gateway_v6 = gateway #NEWLINE# network . save ( )