Browse Source

Fix Additional missing RPC calls in OVSvApp

Created a stub RPC call security_groups_provider_updated.

Change-Id: I1823a6770e11fe610421eb9965f088b41ca75c27
Stephen Ma 11 months ago
parent
commit
500140ab8a

+ 3
- 0
networking_vsphere/agent/ovsvapp_sg_agent.py View File

@@ -89,6 +89,9 @@ class OVSvAppSecurityGroupAgent(sg_rpc.SecurityGroupAgentRpc):
89 89
     def security_groups_member_updated(self, security_groups):
90 90
         pass
91 91
 
92
+    def security_groups_provider_updated(self, port_ids_to_update):
93
+        pass
94
+
92 95
     def sg_provider_updated(self, net_id):
93 96
         devices = []
94 97
         for device in self.firewall.ports.values():

+ 11
- 0
networking_vsphere/ml2/ovsvapp_rpc.py View File

@@ -563,6 +563,17 @@ class OVSvAppAgentNotifyAPI(object):
563 563
         cctxt.cast(context, 'security_groups_rule_updated',
564 564
                    security_groups=security_groups)
565 565
 
566
+    def security_groups_provider_updated(self, context,
567
+                                         devices_to_update=None):
568
+        sg_topic = ovsvapp_const.OVSVAPP + '_' + topics.SECURITY_GROUP
569
+        cctxt = self.client.prepare(
570
+            topic=topics.get_topic_name(self.topic,
571
+                                        sg_topic,
572
+                                        topics.UPDATE),
573
+            fanout=True)
574
+        cctxt.cast(context, 'security_groups_provider_updated',
575
+                   devices_to_update=devices_to_update)
576
+
566 577
     def enhanced_sg_provider_updated(self, context, network_id):
567 578
         sg_topic = ovsvapp_const.OVSVAPP + '_' + topics.SECURITY_GROUP
568 579
         cctxt = self.client.prepare(

Loading…
Cancel
Save