← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1255058] Re: ovs_lib.OVSBridge mod_flow() method doesn't work

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1255058

Title:
  ovs_lib.OVSBridge mod_flow() method doesn't work

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  During my OVS-related prototyping I spotted this. For bug verification
  I used 'ovs_lib' as a standalone python package (without Openstack
  runnig).

  OVS info:
      ovs-ofctl (Open vSwitch) 1.4.0+build0
      Compiled Feb 18 2013 13:13:22
      OpenFlow versions 0x1:0x1

  I can define flow with no problems:
      from neutron.agent.linux import ovs_lib

      int_br = ovs_lib.OVSBridge('br-int', root_helper='sudo')
      int_br.add_flow(priority=777,dl_type=2048, actions='normal')

  Run 'ovs-ofctl dump-flows br-int'
      'cookie=0x0, duration=115.956s, table=0, n_packets=0, n_bytes=0, priority=777,ip actions=NORMAL'

  However when I try to modify this flow:
      int_br.mod_flow(dl_type=2048, actions='drop')
  I see
      'Command: ['sudo', 'ovs-ofctl', 'mod-flows', 'br-int', 'hard_timeout=0,idle_timeout=0,priority=0,dl_type=2048,actions=drop']
      Exit code: 1
      Stdout: ''
      Stderr: 'ovs-ofctl: unknown keyword hard_timeout\n'

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1255058/+subscriptions