[ovs-git] [openvswitch/ovs] 01cfdb: ovn-controller: Add 'put_dhcpv6_opts' action in ov...

GitHub noreply at github.com
Sun Aug 14 20:47:17 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 01cfdb2f7088e415eb5345b1d62cd44df492b36c
      https://github.com/openvswitch/ovs/commit/01cfdb2f7088e415eb5345b1d62cd44df492b36c
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2016-08-14 (Sun, 14 Aug 2016)

  Changed paths:
    M include/ovn/actions.h
    M ovn/controller/lflow.c
    M ovn/controller/pinctrl.c
    M ovn/lib/actions.c
    M 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_dhcpv6_opts' action in ovn-controller

This patch adds a new OVN action 'put_dhcpv6_opts' to support native
DHCPv6 in OVN.

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

When the valid DHCPv6 packet is received by ovn-controller, it frames a
new DHCPv6 reply packet with the DHCPv6 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[3] = put_dhcpv6_opts(ia_addr = aef0::4, server_id = 00:00:00:00:10:02,
               dns_server = {ae70::1,ae70::2}....)

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

Upcoming patch will add logical flows using this action.

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


  Commit: 33ac3c83416334e8759ff21170e42aa9700be8e4
      https://github.com/openvswitch/ovs/commit/33ac3c83416334e8759ff21170e42aa9700be8e4
  Author: Numan Siddique <nusiddiq at redhat.com>
  Date:   2016-08-14 (Sun, 14 Aug 2016)

  Changed paths:
    M lib/packets.h
    M ovn/northd/ovn-northd.8.xml
    M ovn/northd/ovn-northd.c
    M ovn/ovn-nb.ovsschema
    M ovn/ovn-nb.xml
    M tests/ovn.at

  Log Message:
  -----------
  ovn-northd: Add logical flows to support DHCPv6

OVN implements native DHCPv6. DHCPv6 options are stored
in the 'DHCP_Options' NB table and logical ports refer to this
table to configure the DHCPv6 options.

For each logical port configured with DHCPv6 Options following flows
are added
 - A logical flow which copies the DHCPv6 options to the DHCPv6
   request packets using the 'put_dhcpv6_opts' action and advances the
   packet to the next stage.

 - A logical flow which implements the DHCPv6 reponder by sending
   the DHCPv6 reply back to the inport once the 'put_dhcpv6_opts' action
   is applied.

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


Compare: https://github.com/openvswitch/ovs/compare/d3254e21c949...33ac3c834163


More information about the git mailing list