Comment 10 for bug 1585170

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to dragonflow (master)

Reviewed: https://review.openstack.org/477438
Committed: https://git.openstack.org/cgit/openstack/dragonflow/commit/?id=492487b65e82358540b6f520fe2d152d2671d568
Submitter: Jenkins
Branch: master

commit 492487b65e82358540b6f520fe2d152d2671d568
Author: Eyal Leshem <email address hidden>
Date: Mon Jun 26 10:31:55 2017 +0300

    Create field type of DhcpOptsDictField

    As json accept only string as keys - when creating int -> string field type
    The key will serialize as "str" and the validate will fail when desrialzing it.

    so change the extra-dhcp option to DhcpOptsDictField
    (Field type that represent dhcp-opt - according to neutron extra_dhcp_opts spec)

    In addtion add unit-test that validate the serialization and de-serialization..

    Related-bug: #1585170

    Change-Id: I9b24e2968bbef09f5b6b630f6e7a1ba49f3bfef7