[ovs-dev] [PATCH ovn] ovn-northd: Fix chassis/chassis_private RBAC.

Dumitru Ceara dceara at redhat.com
Mon Sep 7 16:58:45 UTC 2020


Steps to reproduce the issue:

$ make sandbox
$ ovs-vsctl set open . external_ids:system-id=new-chassis

Fixes: 94a32fca2d2b ("chassis: Fix the way encaps are updated for a chassis record.")
Fixes: 5344f24ecb1a ("ovn-controller: Refactor chassis.c to abstract the string parsing")
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
---
 northd/ovn-northd.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/northd/ovn-northd.c b/northd/ovn-northd.c
index 3de7161..6927934 100644
--- a/northd/ovn-northd.c
+++ b/northd/ovn-northd.c
@@ -12034,17 +12034,17 @@ static const char *rbac_chassis_auth[] =
     {"name"};
 static const char *rbac_chassis_update[] =
     {"nb_cfg", "external_ids", "encaps", "vtep_logical_switches",
-     "other_config"};
+     "other_config", "name"};
 
 static const char *rbac_chassis_private_auth[] =
     {"name"};
 static const char *rbac_chassis_private_update[] =
-    {"nb_cfg", "chassis"};
+    {"nb_cfg", "chassis", "name"};
 
 static const char *rbac_encap_auth[] =
     {"chassis_name"};
 static const char *rbac_encap_update[] =
-    {"type", "options", "ip"};
+    {"type", "options", "ip", "chassis_name"};
 
 static const char *rbac_port_binding_auth[] =
     {""};
-- 
1.8.3.1



More information about the dev mailing list