diff mbox series

[ovs-dev,v2,16/32] northd: Sync routing data to pb.

Message ID e68a68d695f54ca6492f112cef4b16f878623387.1730713432.git.felix.huettner@stackit.cloud
State Superseded
Headers show
Series OVN Fabric integration | expand

Checks

Context Check Description
ovsrobot/apply-robot success apply and check: success

Commit Message

Felix Huettner Nov. 4, 2024, 11:04 a.m. UTC
this allows the the ovn-controller to later find all ports that
participate in dynamic routing.

Signed-off-by: Felix Huettner <felix.huettner@stackit.cloud>
---
 northd/northd.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Lorenzo Bianconi Nov. 14, 2024, 3:56 p.m. UTC | #1
> this allows the the ovn-controller to later find all ports that
> participate in dynamic routing.
> 
> Signed-off-by: Felix Huettner <felix.huettner@stackit.cloud>
> ---
>  northd/northd.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> diff --git a/northd/northd.c b/northd/northd.c
> index 75f1d652e..46e209fa4 100644
> --- a/northd/northd.c
> +++ b/northd/northd.c
> @@ -4114,6 +4114,16 @@ sync_pb_for_lrp(struct ovn_port *op,
>          }
>      }
>  
> +    if (is_cr_port(op) || chassis_name) {
> +        if (smap_get_bool(&op->nbrp->options, "maintain-vrf", false)) {
> +            smap_add(&new, "maintain-vrf", "true");

Is "maintain-vrf" option documented somewhere?

> +        }
> +        if (smap_get_bool(&op->od->nbr->options, "dynamic-routing", false)) {
> +            smap_add(&new, "dynamic-routing", "true");
> +        }
> +    }
> +
> +
>      const char *ipv6_pd_list = smap_get(&op->sb->options, "ipv6_ra_pd_list");
>      if (ipv6_pd_list) {
>          smap_add(&new, "ipv6_ra_pd_list", ipv6_pd_list);
> -- 
> 2.47.0
> 
> 
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev
>
diff mbox series

Patch

diff --git a/northd/northd.c b/northd/northd.c
index 75f1d652e..46e209fa4 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -4114,6 +4114,16 @@  sync_pb_for_lrp(struct ovn_port *op,
         }
     }
 
+    if (is_cr_port(op) || chassis_name) {
+        if (smap_get_bool(&op->nbrp->options, "maintain-vrf", false)) {
+            smap_add(&new, "maintain-vrf", "true");
+        }
+        if (smap_get_bool(&op->od->nbr->options, "dynamic-routing", false)) {
+            smap_add(&new, "dynamic-routing", "true");
+        }
+    }
+
+
     const char *ipv6_pd_list = smap_get(&op->sb->options, "ipv6_ra_pd_list");
     if (ipv6_pd_list) {
         smap_add(&new, "ipv6_ra_pd_list", ipv6_pd_list);