[ovs-git] [openvswitch/ovs] 428141: ovn-controller: Add 'put_dhcp_opts' action in ovn-...

GitHub noreply at github.com
Thu Jun 23 22:58:27 UTC 2016

  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 42814145d70c77462ce28b38841cd160f0486776
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2016-06-23 (Thu, 23 Jun 2016)

  Changed paths:
    M include/openvswitch/meta-flow.h
    M lib/dhcp.h
    M ovn/controller/lflow.c
    M ovn/controller/pinctrl.c
    M ovn/lib/actions.c
    M ovn/lib/actions.h
    M ovn/lib/automake.mk
    M ovn/lib/expr.c
    M ovn/lib/expr.h
    A ovn/lib/ovn-dhcp.h
    M ovn/ovn-sb.ovsschema
    M ovn/ovn-sb.xml
    M tests/ovn.at
    M tests/test-ovn.c

  Log Message:
  ovn-controller: Add 'put_dhcp_opts' action in ovn-controller

This patch adds a new OVN action 'put_dhcp_opts' to support native

ovn-controller parses this action and adds a NXT_PACKET_IN2
OF flow with 'pause' flag set and the DHCP options stored in
'userdata' field.

When the valid DHCP packet is received by ovn-controller, it frames a
new DHCP reply packet with the DHCP options present in the
'userdata' field and resumes the packet and stores 1 in the 1-bit subfield.
If the packet is invalid, it resumes the packet without any modifying and
stores 0 in the 1-bit subfield.

Eg. reg0[0] = put_dhcp_opts(offerip =, router =,
            netmask =, lease_time = 3600,....)

A new 'DHCP_Options' table is added in SB DB which stores
the supported DHCP options with DHCP code and type. ovn-northd is
expected to popule this table.

The next patch will add logical flows with this action.

Signed-off-by: Numan Siddique <nusiddiq at redhat.com>
Co-authored-by: Ben Pfaff <blp at ovn.org>
Signed-off-by: Ben Pfaff <blp at ovn.org>

More information about the git mailing list