Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn-controller: Add 'put_dhcp_opts' action in ovn-controller
This patch adds a new OVN action 'put_dhcp_opts' to support native DHCP in OVN. 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 = put_dhcp_opts(offerip = 10.0.0.4, router = 10.0.0.1, netmask = 255.255.255.0, 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 <firstname.lastname@example.org> Co-authored-by: Ben Pfaff <email@example.com> Signed-off-by: Ben Pfaff <firstname.lastname@example.org>
- Loading branch information
Showing with 864 additions and 46 deletions.
- +12 −0 include/openvswitch/meta-flow.h
- +13 −0 lib/dhcp.h
- +11 −0 ovn/controller/lflow.c
- +187 −1 ovn/controller/pinctrl.c
- +199 −7 ovn/lib/actions.c
- +13 −0 ovn/lib/actions.h
- +1 −0 ovn/lib/automake.mk
- +10 −35 ovn/lib/expr.c
- +38 −0 ovn/lib/expr.h
- +111 −0 ovn/lib/ovn-dhcp.h
- +14 −2 ovn/ovn-sb.ovsschema
- +198 −0 ovn/ovn-sb.xml
- +25 −1 tests/ovn.at
- +32 −0 tests/test-ovn.c
There are no files selected for viewing
Oops, something went wrong.