On Thu, Jun 9, 2016 at 11:08 AM, Ben Pfaff <b...@ovn.org> wrote: > From: Numan Siddique <nusid...@redhat.com> > > OVN implements a native DHCP support which caters to the common > use case of providing an IP address to a booting instance by > providing stateless replies to DHCP requests based on statically > configured address mappings. To do this it allows a short list of > DHCP options to be configured and applied at each compute host > running ovn-controller. > > A new table 'Subnet' is added in OVN NB DB to store the DHCP options. > > For each logical port following flows are added if the CMS has defined > DHCP options in the 'Subnet' column > > - A logical flow which copies the DHCP options to the DHCP > request packets using the 'put_dhcp_opts' action and advances the > packet to the next stage. > > - A logical flow which implements the DHCP reponder by sending > the DHCP reply back to the inport once the 'put_dhcp_opts' action > is applied. > > Signed-off-by: Numan Siddique <nusid...@redhat.com> > Signed-off-by: Ben Pfaff <b...@ovn.org> > >
I tested this patch series against the WIP networking-ovn dhcp patch [1] and it passed all the tempest tests. I had to do the below modification in ovn-northd.c ------------------------------------------- @@ -1385,7 +1385,7 @@ build_dhcp_action(struct ovn_port *op, ovs_be32 offer_ip, } } - ds_put_format(pause_action, "put_dhcp_opts(reg0, offerip = "IP_FMT", ", + ds_put_format(pause_action, "reg0[0] = put_dhcp_opts(offerip = "IP_FMT", ", IP_ARGS(offer_ip)); SMAP_FOR_EACH(node, &dhcp_options) { ds_put_format(pause_action, "%s = %s, ", node->key, node->value); ---------------------------------------------------- Ben, in case you are busy with other things, please let me know. I can work on fixing the test case failures. Thanks Numan _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev