It is not necessary to create the logical patch port whose peer named "<error>".
Signed-off-by: nickcooper-zhangtonghao <nickcooper-zhangtong...@opencloud.tech> --- ovn/controller/patch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ovn/controller/patch.c b/ovn/controller/patch.c index 707d08b..7e3ae39 100644 --- a/ovn/controller/patch.c +++ b/ovn/controller/patch.c @@ -357,7 +357,10 @@ add_logical_patch_ports(struct controller_ctx *ctx, if (!strcmp(binding->type, "patch") || local_port) { const char *local = binding->logical_port; const char *peer = smap_get(&binding->options, "peer"); - if (!peer) { + + /* It is not necessary to create the logical patch port + * whose peer named "<error>". */ + if (!peer || !strcmp(peer, "<error>")) { continue; } -- 1.8.3.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev