Skip to content

Commit

Permalink
IPv6 PD: Disable pd processing if the router port is disabled.
Browse files Browse the repository at this point in the history
Tested-by: Jianlin Shi <jishi@redhat.com>
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Numan Siddique <numans@ovn.org>
  • Loading branch information
LorenzoBianconi authored and numansiddique committed Apr 30, 2020
1 parent c2d0c76 commit 2217bcc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions northd/ovn-northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -9382,12 +9382,18 @@ build_lrouter_flows(struct hmap *datapaths, struct hmap *ports,
/* enable IPv6 prefix delegation */
bool prefix_delegation = smap_get_bool(&op->nbrp->options,
"prefix_delegation", false);
if (!lrport_is_enabled(op->nbrp)) {
prefix_delegation = false;
}
smap_add(&options, "ipv6_prefix_delegation",
prefix_delegation ? "true" : "false");
sbrec_port_binding_set_options(op->sb, &options);

bool ipv6_prefix = smap_get_bool(&op->nbrp->options,
"prefix", false);
if (!lrport_is_enabled(op->nbrp)) {
ipv6_prefix = false;
}
smap_add(&options, "ipv6_prefix",
ipv6_prefix ? "true" : "false");
sbrec_port_binding_set_options(op->sb, &options);
Expand Down

0 comments on commit 2217bcc

Please sign in to comment.