#NEWLINE# def test_filter_ipv6_egress_udp_mport( self ) : #NEWLINE# #INDENT# proto = 'udp' #NEWLINE# priority = PROTOCOLS_LEARN_ACTION_PRIO [ proto ] #NEWLINE# rule = { #NEWLINE# #INDENT# 'ethertype' : constants . IPv6 , #NEWLINE# 'direction' : 'egress' , #NEWLINE# 'protocol' : proto , #NEWLINE# 'port_range_min' : 10 , #NEWLINE# 'port_range_max' : 100 , #NEWLINE# #UNINDENT# } #NEWLINE# udp_dst = [ '0x000a/0xfffe' , '0x000c/0xfffc' , '0x0010/0xfff0' , '0x0020/0xffe0' , '0x0044/0xffe0' , '0x0060/0xfffc' , '0x0064' ] #NEWLINE# flow_call_list = [ ] #NEWLINE# for port in udp_dst : #NEWLINE# #INDENT# flow_call_list . append ( mock . call ( actions = self . _learn_egress_actions ( proto , rule [ 'ethertype' ] , priority ) , dl_src = self . fake_port_1 [ 'mac_address' ] , ipv6_src = FAKE_IP [ constants . IPv6 ] , priority = 30 , proto = PROTOCOLS_STR [ constants . IPv6 ] [ proto ] , table = OF_EGRESS_TABLE , udp_dst = port ) ) #NEWLINE# #UNINDENT# self . _test_rules ( [ port ] , FAKE_SGID , flow_call_list )