summaryrefslogtreecommitdiff
path: root/lib/netdev-vport.c
diff options
context:
space:
mode:
authorMark Gray <mark.d.gray@redhat.com>2020-12-24 05:06:20 -0500
committerIlya Maximets <i.maximets@ovn.org>2021-01-05 19:21:32 +0100
commitb9c6da7edc1662f336bdf06e8fa564e90d082fd9 (patch)
tree24a198b12daaa6ebb7d39818e324f54dfc5ee5b5 /lib/netdev-vport.c
parentcafe492d768c5d9f919f26c768a7f96e30b43845 (diff)
downloadopenvswitch-b9c6da7edc1662f336bdf06e8fa564e90d082fd9.tar.gz
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 <mark.d.gray@redhat.com> Acked-by: Eelco Chaudron <echaudro@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib/netdev-vport.c')
-rw-r--r--lib/netdev-vport.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/netdev-vport.c b/lib/netdev-vport.c
index 15567e524..499c0291c 100644
--- a/lib/netdev-vport.c
+++ b/lib/netdev-vport.c
@@ -767,6 +767,14 @@ set_tunnel_config(struct netdev *dev_, const struct smap *args, char **errp)
}
tnl_cfg.payload_ethertype = htons(payload_ethertype);
}
+ } 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);