

def apply_ovs_ipv4_flows(ovs, bridge, params):
    ovs.add('priority=4,arp,in_port=%(OF_PORT)s,dl_src=%(MAC)s,nw_src=%(IPV4_ADDR)s,arp_sha=%(MAC)s,actions=resubmit:9999')
    ovs.add('priority=4,arp,in_port=%(OF_PORT)s,dl_src=%(MAC)s,nw_src=0.0.0.0,arp_sha=%(MAC)s,actions=resubmit:9999')
    ovs.add('priority=4,ip,in_port=%(OF_PORT)s,dl_src=%(MAC)s,nw_src=%(IPV4_ADDR)s,actions=resubmit:9999')
    ovs.add('priority=6,ip,in_port=%(OF_PORT)s,dl_dst=ff:ff:ff:ff:ff:ff,actions=drop')
    ovs.add('priority=5,ip,in_port=%(OF_PORT)s,nw_dst=224.0.0.0/4,actions=drop')
    ovs.add('priority=5,ip,in_port=%(OF_PORT)s,nw_dst=240.0.0.0/4,actions=drop')
    bridge.add('priority=3,arp,in_port=9999,nw_dst=%(IPV4_ADDR)s,actions=output:%(OF_PORT)s,output:%(PHYS_PORT)s')
    ovs.add('priority=3,arp,in_port=%(PHYS_PORT)s,nw_dst=%(IPV4_ADDR)s,actions=output:%(OF_PORT)s')
    ovs.add('priority=3,arp,in_port=9999,dl_dst=%(MAC)s,actions=output:%(OF_PORT)s')
    ovs.add('priority=3,arp,in_port=%(PHYS_PORT)s,dl_dst=%(MAC)s,actions=output:%(OF_PORT)s')
    ovs.add('priority=3,ip,in_port=9999,dl_dst=%(MAC)s,nw_dst=%(IPV4_ADDR)s,actions=output:%(OF_PORT)s,output:%(PHYS_PORT)s')
    ovs.add('priority=3,ip,in_port=%(PHYS_PORT)s,dl_dst=%(MAC)s,nw_dst=%(IPV4_ADDR)s,actions=output:%(OF_PORT)s')
    ovs.add('priority=2,in_port=9999,actions=output:%(PHYS_PORT)s')

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/plugins/xenserver/networking/etc/xensource/scripts/ovs_configure_vif_flows.py apply_ovs_ipv4_flows/VarMisuse@56/318 `ovs`->`bridge`