def test_delete_flow(self):
    ofport = '5'
    lsw_id = 40
    vid = 39
    utils.execute(['ovs-ofctl', 'del-flows', self.BR_NAME, ('in_port=' + ofport)], root_helper=self.root_helper)
    utils.execute(['ovs-ofctl', 'del-flows', self.BR_NAME, ('tun_id=%s' % lsw_id)], root_helper=self.root_helper)
    utils.execute(['ovs-ofctl', 'del-flows', self.BR_NAME, ('dl_vlan=%s' % vid)], root_helper=self.root_helper)
    self.mox.ReplayAll()
    self.br.delete_flows(in_port=ofport)
    self.br.delete_flows(tun_id=lsw_id)
    self.br.delete_flows(dl_vlan=vid)
    self.mox.VerifyAll()
def test_delete_flow(self):
    ofport = '5'
    lsw_id = 40
    vid = 39
    utils.execute(['ovs-ofctl', 'del-flows', self.BR_NAME, ('in_port=' + ofport)], root_helper=self.root_helper)
    utils.execute(['ovs-ofctl', 'del-flows', self.BR_NAME, ('tun_id=%s' % lsw_id)], root_helper=self.root_helper)
    utils.execute(['ovs-ofctl', 'del-flows', self.BR_NAME, ('dl_vlan=%s' % vid)], root_helper=self.root_helper)
    self.mox.ReplayAll()
    self.br.delete_flows(in_port=ofport)
    self.br.delete_flows(tun_id=lsw_id)
    self.br.delete_flows(dl_vlan=vid)
    self.mox.VerifyAll()