[ovs-git] [ovn-org/ovn] b06319: Fix the data type for DHCP option tftp_server (66)

Dhathri Purohith noreply at github.com
Wed Jun 17 09:07:35 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: b06319993debbeb6d116901afa511d627543c10d
      https://github.com/ovn-org/ovn/commit/b06319993debbeb6d116901afa511d627543c10d
  Author: Dhathri Purohith <dhathri.purohith at nutanix.com>
  Date:   2020-06-17 (Wed, 17 Jun 2020)

  Changed paths:
    M lib/actions.c
    M lib/ovn-l7.h
    M northd/ovn-northd.c
    M ovn-nb.xml
    M ovn-sb.ovsschema
    M ovn-sb.xml
    M tests/ovn.at
    M tests/test-ovn.c

  Log Message:
  -----------
  Fix the data type for DHCP option tftp_server (66)

Currently, DHCP option is of type ipv4. But, according to RFC 2132,
option 66 can be a hostname i.e, we should also accept string type.
In order to be backward compatible, a new type called "host_id" is
introduced, which accepts both ipv4 address and string. Type for DHCP
option 66 is changed to "host_id" instead of ipv4.
OVN northd code that updates the OVN southbound database is enhanced to
consider the change in the type and code for DHCP option, so that the
change in datatype is reflected.

Signed-off-by: Dhathri Purohith <dhathri.purohith at nutanix.com>
Signed-off-by: Ankur Sharma <ankur.sharma at nutanix.com>
Signed-off-by: Numan Siddique <numans at ovn.org>




More information about the git mailing list