From 8397d46ee900879425aa21834d244550238163f9 Mon Sep 17 00:00:00 2001 From: Mark Gray Date: Thu, 24 Dec 2020 05:06:20 -0500 Subject: [PATCH] ovs-monitor-ipsec: Suppress "unknown %d argument" warning. As 'ovs-vswitchd' does not understand IPsec tunnel options, it gives a warning message. This can be safely suppressed. Reported at: https://bugzilla.redhat.com/show_bug.cgi?id=1906701 Signed-off-by: Mark Gray Acked-by: Eelco Chaudron Acked-by: Flavio Leitner Signed-off-by: Ilya Maximets --- lib/netdev-vport.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c index 0252b61dea2..7c99f790dfc 100644 --- a/lib/netdev-vport.c +++ b/lib/netdev-vport.c @@ -745,6 +745,14 @@ set_tunnel_config(struct netdev *dev_, const struct smap *args, char **errp) goto out; } } + } else if (!strcmp(node->key, "remote_cert") || + !strcmp(node->key, "remote_name") || + !strcmp(node->key, "psk")) { + /* When configuring OVS for IPsec, these keys may be set in the + tunnel port's 'options' column. 'ovs-vswitchd' does not directly + use them, but they are read by 'ovs-monitor-ipsec'. In order to + suppress the "unknown %s argument" warning message below, we + handle them here by ignoring them. */ } else { ds_put_format(&errors, "%s: unknown %s argument '%s'\n", name, type, node->key);