diff mbox series

[ovs-dev] ovn-nb.xml: Fix "mcast_querier".

Message ID 20230201062523.3623957-1-hzhou@ovn.org
State Accepted
Headers show
Series [ovs-dev] ovn-nb.xml: Fix "mcast_querier". | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success
ovsrobot/github-robot-_Build_and_Test success github build: passed
ovsrobot/github-robot-_ovn-kubernetes success github build: passed

Commit Message

Han Zhou Feb. 1, 2023, 6:25 a.m. UTC
Signed-off-by: Han Zhou <hzhou@ovn.org>
---
 ovn-nb.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dumitru Ceara Feb. 1, 2023, 9:37 a.m. UTC | #1
On 2/1/23 07:25, Han Zhou wrote:
> Signed-off-by: Han Zhou <hzhou@ovn.org>
> ---

Hi Han,

Thanks for the fix!

>  ovn-nb.xml | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/ovn-nb.xml b/ovn-nb.xml
> index 217eb877b055..929f4c966966 100644
> --- a/ovn-nb.xml
> +++ b/ovn-nb.xml
> @@ -630,7 +630,7 @@
>          These options control IP Multicast Snooping configuration of the
>          logical switch. To enable IP Multicast Snooping set
>          <ref column="other_config" key="mcast_snoop"/> to true. To enable IP
> -        Multicast Querier set <ref column="other_config" key="mcast_snoop"/>
> +        Multicast Querier set <ref column="other_config" key="mcast_querier"/>
>          to true. If IP Multicast Querier is enabled
>          <ref column="other_config" key="mcast_eth_src"/> and
>          <ref column="other_config" key="mcast_ip4_src"/> must be set.

This looks good to me so:

Acked-by: Dumitru Ceara <dceara@redhat.com>

But I'm wondering if we should also document the defaults:

diff --git a/ovn-nb.xml b/ovn-nb.xml
index 929f4c9669..4b52b99533 100644
--- a/ovn-nb.xml
+++ b/ovn-nb.xml
@@ -638,10 +638,14 @@
       <column name="other_config" key="mcast_snoop"
           type='{"type": "boolean"}'>
         Enables/disables IP Multicast Snooping on the logical switch.
+        Default: <code>false</code>.
       </column>
       <column name="other_config" key="mcast_querier"
           type='{"type": "boolean"}'>
         Enables/disables IP Multicast Querier on the logical switch.
+        Only applicable if <ref column="other_config" key="mcast_snoop"/>
+        is enabled.
+        Default: <code>true</code>.
       </column>
       <column name="other_config" key="mcast_flood_unregistered"
           type='{"type": "boolean"}'>
---

If you agree, do you think it's OK to squash this into your patch
before applying it?

Thanks,
Dumitru
Han Zhou Feb. 1, 2023, 9:31 p.m. UTC | #2
On Wed, Feb 1, 2023 at 1:38 AM Dumitru Ceara <dceara@redhat.com> wrote:
>
> On 2/1/23 07:25, Han Zhou wrote:
> > Signed-off-by: Han Zhou <hzhou@ovn.org>
> > ---
>
> Hi Han,
>
> Thanks for the fix!
>
> >  ovn-nb.xml | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/ovn-nb.xml b/ovn-nb.xml
> > index 217eb877b055..929f4c966966 100644
> > --- a/ovn-nb.xml
> > +++ b/ovn-nb.xml
> > @@ -630,7 +630,7 @@
> >          These options control IP Multicast Snooping configuration of
the
> >          logical switch. To enable IP Multicast Snooping set
> >          <ref column="other_config" key="mcast_snoop"/> to true. To
enable IP
> > -        Multicast Querier set <ref column="other_config"
key="mcast_snoop"/>
> > +        Multicast Querier set <ref column="other_config"
key="mcast_querier"/>
> >          to true. If IP Multicast Querier is enabled
> >          <ref column="other_config" key="mcast_eth_src"/> and
> >          <ref column="other_config" key="mcast_ip4_src"/> must be set.
>
> This looks good to me so:
>
> Acked-by: Dumitru Ceara <dceara@redhat.com>
>
> But I'm wondering if we should also document the defaults:
>
> diff --git a/ovn-nb.xml b/ovn-nb.xml
> index 929f4c9669..4b52b99533 100644
> --- a/ovn-nb.xml
> +++ b/ovn-nb.xml
> @@ -638,10 +638,14 @@
>        <column name="other_config" key="mcast_snoop"
>            type='{"type": "boolean"}'>
>          Enables/disables IP Multicast Snooping on the logical switch.
> +        Default: <code>false</code>.
>        </column>
>        <column name="other_config" key="mcast_querier"
>            type='{"type": "boolean"}'>
>          Enables/disables IP Multicast Querier on the logical switch.
> +        Only applicable if <ref column="other_config" key="mcast_snoop"/>
> +        is enabled.
> +        Default: <code>true</code>.
>        </column>
>        <column name="other_config" key="mcast_flood_unregistered"
>            type='{"type": "boolean"}'>
> ---
>
> If you agree, do you think it's OK to squash this into your patch
> before applying it?
>
> Thanks,
> Dumitru
>
>
Thanks Dumitru! I folded your change into the patch and applied to main.

Han
diff mbox series

Patch

diff --git a/ovn-nb.xml b/ovn-nb.xml
index 217eb877b055..929f4c966966 100644
--- a/ovn-nb.xml
+++ b/ovn-nb.xml
@@ -630,7 +630,7 @@ 
         These options control IP Multicast Snooping configuration of the
         logical switch. To enable IP Multicast Snooping set
         <ref column="other_config" key="mcast_snoop"/> to true. To enable IP
-        Multicast Querier set <ref column="other_config" key="mcast_snoop"/>
+        Multicast Querier set <ref column="other_config" key="mcast_querier"/>
         to true. If IP Multicast Querier is enabled
         <ref column="other_config" key="mcast_eth_src"/> and
         <ref column="other_config" key="mcast_ip4_src"/> must be set.