#NEWLINE# def test_filter_ipv6_ingress_udp_prefix( self ) : #NEWLINE# #INDENT# proto = 'udp' #NEWLINE# priority = PROTOCOLS_LEARN_ACTION_PRIO [ proto ] #NEWLINE# prefix = FAKE_PREFIX [ constants . IPv6 ] #NEWLINE# rule = { #NEWLINE# #INDENT# 'ethertype' : constants . IPv6 , #NEWLINE# 'direction' : 'ingress' , #NEWLINE# 'protocol' : proto , #NEWLINE# 'source_ip_prefix' : prefix , #NEWLINE# #UNINDENT# } #NEWLINE# flow_call_list = [ mock . call ( actions = self . _learn_ingress_actions ( proto , rule [ 'ethertype' ] , self , ofport = self . fake_port_1 [ 'ofport' ] ) , dl_dst = self . fake_port_1 [ 'mac_address' ] , ipv6_dst = FAKE_IP [ constants . IPv6 ] , ipv6_src = prefix , priority = 30 , proto = PROTOCOLS_STR [ constants . IPv6 ] [ proto ] , table = OF_INGRESS_TABLE ) ] #NEWLINE# self . _test_rules ( [ rule ] , FAKE_SGID , flow_call_list )