ovn-northd: logical router icmp response should not care about inport
authorFlavio Fernandes <flavio@flaviof.com>
Fri, 27 May 2016 15:53:35 +0000 (11:53 -0400)
committerBen Pfaff <blp@ovn.org>
Tue, 7 Jun 2016 04:34:20 +0000 (21:34 -0700)
commitbb3c45686801922e8993844729f7a7f678d2e202
tree315cd34ffe326eabe21991c0b00c00c3f2211229
parent454ff7613ffb9ceef5c3e0ac05db5012a795e68a
ovn-northd: logical router icmp response should not care about inport

When responding to icmp echo requests (aka ping) packets, the logical
router should not restrict responses based on the inport.

Example diagram:

vm: IP1.1 (subnet1)
logical_router: IP1.2 (subnet1) and IP2.2 (subnet2)

   vm -------[subnet1]------- logical_router -------[subnet2]
   <IP1.1>                <IP1.2>        <IP2.2>

vm should be able to ping <IP2.2>, even though it is an address
of a subnet that can only be reached through L3 routing.

Reference to the mailing list thread:
http://openvswitch.org/pipermail/discuss/2016-May/021172.html

Signed-off-by: Ben Pfaff <blp@ovn.org>
ovn/northd/ovn-northd.c
tests/ovn.at