]> git.proxmox.com Git - mirror_ovs.git/commit - tests/ovn.at
ovn: specify addresses of type "router" lsps as "router"
authorMickey Spiegel <mickeys.dev@gmail.com>
Fri, 6 Jan 2017 20:00:28 +0000 (12:00 -0800)
committerBen Pfaff <blp@ovn.org>
Fri, 13 Jan 2017 23:50:51 +0000 (15:50 -0800)
commit2041809932c65f71acb55ae493e33f5372f3c93d
tree130b6d518e2d60e3e70db05d9f01197cd3adf295
parent3f5b5f7b411553e0421e37b49dc5deeaede56308
ovn: specify addresses of type "router" lsps as "router"

Currently in OVN, when a logical switch port of type "router" is
created, the MAC and optionally IP addresses of the peer logical
router port must be specified again as the addresses of the logical
switch port.

This patch allows the logical switch port's addresses to be
specified as the string "router", rather than explicitly copying the
logical router port's MAC and optionally IP addresses.  The router
addresses are used to populate the logical switch's destination
lookup, and to populate op->lsp_addrs in ovn-northd.c, which in turn
is used to generate logical switch ARP and ND replies.  Since ipam
already looks at logical router ports, the only ipam modification
necessary is to skip logical switch ports with addresses "router".

Signed-off-by: Mickey Spiegel <mickeys.dev@gmail.com>
Acked-by: Ben Pfaff <blp@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/northd/ovn-northd.c
ovn/ovn-nb.xml
ovn/utilities/ovn-nbctl.8.xml
ovn/utilities/ovn-nbctl.c
tests/ovn.at