[ovs-dev] [PATCH] Make the notify() calls work with IPv6

Gabriele Cerami gcerami at redhat.com
Sun May 31 11:19:07 UTC 2020


AFAIK OVN patches should have PATCH ovn prefix :)

On 31 May, Michele Baldessari wrote:
> ---
>  utilities/ovndb-servers.ocf | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/utilities/ovndb-servers.ocf b/utilities/ovndb-servers.ocf
> index 56c2bc3227c3..2181bc5e273a 100755
> --- a/utilities/ovndb-servers.ocf
> +++ b/utilities/ovndb-servers.ocf
> @@ -251,11 +251,14 @@ ovsdb_server_notify() {
>          else
>             LISTEN_ON_IP=${MASTER_IP}

May I suggest a less intrusive one liner ? LISTEN_ON_IP=$(sed -e 's/\(\[\|\]\|:\)/\\\1/g' <<< ${MASTER_IP})

>          fi
> +        # ovn-nbctl wants ':[]' characters to be escaped. We do so in order
> +        # to make this work when MASTER_IP is an IPv6 address
> +        LISTEN_ON_IP_ESCAPED=$(echo ${LISTEN_ON_IP} | sed -e 's/\(\[\|\]\|:\)/\\\1/g')



More information about the dev mailing list