diff options
author | Ben Pfaff <blp@ovn.org> | 2018-03-31 17:12:55 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2018-04-03 11:10:37 -0700 |
commit | 898d7b0524c00cdf1cc7af85aade858bceb997e1 (patch) | |
tree | 7f3afd9e21bc36aeb5e82769d6384d06a6623671 /vswitchd/ovs-vswitchd.c | |
parent | 966574598a3cb86a6d799ca3715005763a7c9186 (diff) | |
download | openvswitch-898d7b0524c00cdf1cc7af85aade858bceb997e1.tar.gz |
ovs-vswitchd: Do not use system routing table with --disable-system.
The --disable-system option indicates that the user wants to avoid using
the host's datapath. This is also a good indication that the user does
not want to use other host resources such as the routing table, so this
commit implements that.
This fixes a failure in the test "ptap - recirculate after packet_type
change" when the host routing table contained an entry that affected the
generated flow. Without this patch, the commands:
led to a failure in that test.
Reported-by: Timothy Redaelli <tredaelli@redhat.com>
Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-March/046406.html
Tested-By: Timothy Redaelli <tredaelli@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'vswitchd/ovs-vswitchd.c')
-rw-r--r-- | vswitchd/ovs-vswitchd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vswitchd/ovs-vswitchd.c b/vswitchd/ovs-vswitchd.c index 83639357a..414b54780 100644 --- a/vswitchd/ovs-vswitchd.c +++ b/vswitchd/ovs-vswitchd.c @@ -38,6 +38,7 @@ #include "openflow/openflow.h" #include "ovsdb-idl.h" #include "ovs-rcu.h" +#include "ovs-router.h" #include "openvswitch/poll-loop.h" #include "simap.h" #include "stream-ssl.h" @@ -219,6 +220,7 @@ parse_options(int argc, char *argv[], char **unixctl_pathp) case OPT_DISABLE_SYSTEM: dp_blacklist_provider("system"); + ovs_router_disable_system_routing_table(); break; case '?': |