A VLAN bridge uses its parent's fail-mode, so checking the fail-mode should
verify the parent's bridge record.
This fixes a bug, but it is unlikely to ever have caused a real problem for
users.
Found by inspection.
Signed-off-by: Ben Pfaff <blp@nicira.com>
get_info(ctx, &info);
br = find_bridge(&info, ctx->argv[1], true);
- if (br->br_cfg) {
- ovsrec_bridge_verify_fail_mode(br->br_cfg);
- }
+ ovsrec_bridge_verify_fail_mode(br->br_cfg
+ ? br->br_cfg : br->parent->br_cfg);
if (br->fail_mode && strlen(br->fail_mode)) {
ds_put_format(&ctx->output, "%s\n", br->fail_mode);
}