#NEWLINE# def _check_vxlan_ucast_supported( self , expected , l2_population , iproute_arg_supported , fdb_append ) : #NEWLINE# #INDENT# cfg . CONF . set_override ( 'l2_population' , l2_population , 'VXLAN' ) #NEWLINE# with mock . patch . object ( ip_lib , 'device_exists' , return_value = False ) , mock . patch . object ( ip_lib , 'vxlan_in_use' , return_value = False ) , mock . patch . object ( self . lbm , 'delete_interface' , return_value = None ) , mock . patch . object ( self . lbm , 'ensure_vxlan' , return_value = None ) , mock . patch . object ( utils , 'execute' , side_effect = ( None if fdb_append else RuntimeError ( ) ) ) , mock . patch . object ( ip_lib , 'iproute_arg_supported' , return_value = iproute_arg_supported ) : #NEWLINE# #INDENT# self . assertEqual ( expected , self . lbm . vxlan_ucast_supported ( ) )