#NEWLINE# def _validate_ipv6_dhcp( self , ra_mode_set , address_mode_set , enable_dhcp ) : #NEWLINE# #INDENT# if ( ( ra_mode_set or address_mode_set ) and ( not address_mode_set ) ) : #NEWLINE# #INDENT# msg = _ ( 'ipv6_ra_mode or ipv6_address_mode cannot be set when enable_dhcp is set to False.' ) #NEWLINE# raise exc . InvalidInput ( error_message = msg )