Browse Source

Feature: Adding L7Policy/Rule for A10Networks

Added Manager classes for L7Policy and L7Rules.
A10Networks neutron-lbaas-driver have recently
added feature for L7Policy and L7Rules.
Adding specific classes to enable the features.
Added class L7PolicyManager and L7RuleManager
with specific create, update and delete functions.
These changes are specific to A10Networks driver
only.

Change-Id: I053cc520eafc829c5dd1192aa158c041b45486bb
omkartelee01 2 months ago
parent
commit
9e7b1156f8
1 changed files with 24 additions and 0 deletions
  1. 24
    0
      neutron_lbaas/drivers/a10networks/driver_v2.py

+ 24
- 0
neutron_lbaas/drivers/a10networks/driver_v2.py View File

@@ -102,3 +102,27 @@ class HealthMonitorManager(driver_base.BaseHealthMonitorManager):
102 102
 
103 103
     def delete(self, context, hm):
104 104
         self.driver.a10.hm.delete(context, hm)
105
+
106
+
107
+class L7PolicyManager(driver_base.BaseL7PolicyManager):
108
+
109
+    def create(self, context, l7policy):
110
+        self.driver.a10.l7policy.create(context, l7policy)
111
+
112
+    def update(self, context, old_l7policy, l7policy):
113
+        self.driver.a10.l7policy.update(context, old_l7policy, l7policy)
114
+
115
+    def delete(self, context, l7policy):
116
+        self.driver.a10.l7policy.delete(context, l7policy)
117
+
118
+
119
+class L7RuleManager(driver_base.BaseL7RuleManager):
120
+
121
+    def create(self, context, l7rule):
122
+        self.driver.a10.l7rule.create(context, l7rule)
123
+
124
+    def update(self, context, old_l7rule, l7rule):
125
+        self.driver.a10.l7rule.update(context, old_l7rule, l7rule)
126
+
127
+    def delete(self, context, l7rule):
128
+        self.driver.a10.l7rule.delete(context, l7rule)

Loading…
Cancel
Save