Message ID | 20230321060235.2256118-3-hzhou@ovn.org |
---|---|
State | Accepted |
Headers | show |
Series | Refactor northd to prepare for incremental processing. | expand |
Context | Check | Description |
---|---|---|
ovsrobot/apply-robot | success | apply and check: success |
ovsrobot/github-robot-_ovn-kubernetes | success | github build: passed |
ovsrobot/github-robot-_Build_and_Test | fail | github build: failed |
diff --git a/northd/northd.c b/northd/northd.c index 1e49301dd5b4..8f90e0ce4e04 100644 --- a/northd/northd.c +++ b/northd/northd.c @@ -12582,11 +12582,8 @@ build_arp_resolve_flows_for_lrouter_port( } for (size_t i = 0; i < op->od->n_router_ports; i++) { - const char *router_port_name = smap_get( - &op->od->router_ports[i]->nbsp->options, - "router-port"); - struct ovn_port *router_port = ovn_port_find(ports, - router_port_name); + struct ovn_port *router_port = + ovn_port_get_peer(ports, op->od->router_ports[i]); if (!router_port || !router_port->nbrp) { continue; }
We already have a helper function for the logic, so reuse it. Signed-off-by: Han Zhou <hzhou@ovn.org> --- northd/northd.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)