[ovs-dev] [PATCH v3 0/2] ovn: Support native DHCP using 'continuations'

Numan Siddique nusiddiq at redhat.com
Thu Apr 28 13:48:17 UTC 2016


v2 -> v3 changes
----------------

* Removed RFC tag

* Added a new table 'Subnet' in NB DB to store the DHCP options. A new column 'subnets'
  is added in 'Logical_Switch' table which refers to this table.

* Added new commands in ovn-nbctl to create and delete subnets belonging to a lswitch
  and to set DHCP options.

* Added a new table 'DHCP_Options' in SB DB to store the supported DHCP option codes.

* Added test cases.


v1 -> v2 changes
--------------

* Added basic documentation

* Added support for classless static routes - dhcp option 121

* Added a new egress table (Table 0) to skip the ACL stages for response dhcp packets.
  This is required until the below reported bug is fixed.
  Please see - http://openvswitch.org/pipermail/dev/2016-April/069542.html

* Added support for storing dhcp options for multiple subnets belonging
  to a lswitch.

Example.
If a lswitch has logical ports having IPv4 addresses belonging to 2 subnets - 10.0.0.0/24 and 20.0.0.0/24,
Then the DHCP options needs to be stored in Logical_Switch.dhcp_options as :

"10.0.0.0/24": "{"server_id": "10.0.0.1", "lease_time": "43200",
                 "mtu": "1450", "netmask": "255.255.255.0",
                 "router": "10.0.0.1", "dns_server": "{7.7.7.7,8.8.8.8}",
                 "server_mac": "fa:16:3e:3e:b8:8a"}"

"20.0.0.0/24": "{"server_id": "20.0.0.1", "lease_time": "43200",
                 "mtu": "1450", "netmask": "255.255.255.0",
                 "router": "20.0.0.1", "server_mac": "fa:16:3e:3e:b8:8b",
		 "classless_static_route": "{30.0.0.0/24,20.0.0.4, 0.0.0.0/0,20.0.0.1}"}"

* Few other small changes.

TODO : 
* Add a new table in southbound db and store the supported dhcp option names and codes.
* Test cases 

With v3 hoping to remove the RFC tag.

--------------------------------


Numan Siddique (2):
  ovn: Support 'dhcp_offer' action in ovn-controller
  ovn: Add logical flows to support native DHCP

 lib/dhcp.h                    |  13 ++
 ovn/controller/lflow.c        |  11 ++
 ovn/controller/pinctrl.c      | 103 ++++++++++++++-
 ovn/lib/actions.c             | 151 +++++++++++++++++++++-
 ovn/lib/actions.h             |   8 ++
 ovn/lib/automake.mk           |   3 +-
 ovn/lib/expr.c                |  48 ++-----
 ovn/lib/expr.h                |  37 ++++++
 ovn/lib/ovn-dhcp.h            | 121 ++++++++++++++++++
 ovn/northd/ovn-northd.8.xml   |  79 ++++++++++--
 ovn/northd/ovn-northd.c       | 282 +++++++++++++++++++++++++++++++++++++++---
 ovn/ovn-nb.ovsschema          |  19 ++-
 ovn/ovn-nb.xml                | 185 ++++++++++++++++++++++++++-
 ovn/ovn-sb.ovsschema          |  13 +-
 ovn/ovn-sb.xml                |  44 +++++++
 ovn/utilities/ovn-nbctl.8.xml |  29 +++++
 ovn/utilities/ovn-nbctl.c     | 198 +++++++++++++++++++++++++++++
 tests/automake.mk             |   1 +
 tests/ovn.at                  | 225 +++++++++++++++++++++++++++++++++
 tests/test-ovn-dhcp.c         | 271 ++++++++++++++++++++++++++++++++++++++++
 20 files changed, 1767 insertions(+), 74 deletions(-)
 create mode 100644 ovn/lib/ovn-dhcp.h
 create mode 100644 tests/test-ovn-dhcp.c

-- 
2.5.5




More information about the dev mailing list