diff options
author | Mickey Spiegel <mickeys.dev@gmail.com> | 2017-01-06 12:00:28 -0800 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2017-01-13 15:50:51 -0800 |
commit | 2041809932c65f71acb55ae493e33f5372f3c93d (patch) | |
tree | 130b6d518e2d60e3e70db05d9f01197cd3adf295 /tests/ovn.at | |
parent | 3f5b5f7b411553e0421e37b49dc5deeaede56308 (diff) | |
download | openvswitch-2041809932c65f71acb55ae493e33f5372f3c93d.tar.gz |
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>
Diffstat (limited to 'tests/ovn.at')
-rw-r--r-- | tests/ovn.at | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ovn.at b/tests/ovn.at index 8cbd06aba..7d84ca857 100644 --- a/tests/ovn.at +++ b/tests/ovn.at @@ -4804,7 +4804,8 @@ ovn-nbctl ls-add alice -- add Logical_Switch alice other_config subnet=192.168.2 # Connect foo to R1 ovn-nbctl lrp-add R1 foo 00:00:00:01:02:03 192.168.1.1/24 ovn-nbctl lsp-add foo rp-foo -- set Logical_Switch_Port rp-foo type=router \ - options:router-port=foo addresses=\"00:00:00:01:02:03\" + options:router-port=foo \ + -- lsp-set-addresses rp-foo router # Connect alice to R1 ovn-nbctl lrp-add R1 alice 00:00:00:01:02:04 192.168.2.1/24 |