On Fri, Jan 15, 2021 at 4:30 AM Lorenzo Bianconi <
[email protected]> wrote:

> Introduce bfd info to lr-route-list command
>
> Signed-off-by: Lorenzo Bianconi <[email protected]>
> ---
>  tests/ovn-northd.at   | 1 +
>  utilities/ovn-nbctl.c | 5 +++++
>  2 files changed, 6 insertions(+)
>
> diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at
> index 91eb9a3d1..b5a39b1fc 100644
> --- a/tests/ovn-northd.at
> +++ b/tests/ovn-northd.at
> @@ -2377,6 +2377,7 @@ check ovn-nbctl lr-route-add r0 100.0.0.0/8
> 192.168.10.2
>  route_uuid=$(fetch_column nb:logical_router_static_route _uuid ip_prefix="
> 100.0.0.0/8")
>  check ovn-nbctl set logical_router_static_route $route_uuid bfd=$uuid
>  check_column down bfd status logical_port=r0-sw1
> +AT_CHECK([ovn-nbctl lr-route-list r0 | grep 192.168.10.2 | grep -q
> bfd],[0])
>
>  check ovn-nbctl clear logical_router_static_route $route_uuid bfd
>  check_column admin_down bfd status logical_port=r0-sw1
> diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
> index d67f5c456..abd138313 100644
> --- a/utilities/ovn-nbctl.c
> +++ b/utilities/ovn-nbctl.c
> @@ -5503,6 +5503,11 @@ print_route(const struct
> nbrec_logical_router_static_route *route, struct ds *s)
>      if (smap_get(&route->external_ids, "ic-learned-route")) {
>          ds_put_format(s, " (learned)");
>      }
> +
> +    if (route->bfd) {
> +        ds_put_format(s, " %s", "bfd");
> +    }
> +
>

Hi Lorenzo. Thanks for the patch.

I replaced the above ds_put_format with ds_put_cstr(s, " bfd") and applied
the patch to master.

Thanks
Numan


>      ds_put_char(s, '\n');
>  }
>
> --
> 2.29.2
>
> _______________________________________________
> dev mailing list
> [email protected]
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to