python-neutronclient 11.2.0__py3-none-any.whl → 11.3.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- neutronclient/osc/v2/fwaas/firewallpolicy.py +2 -2
- neutronclient/osc/v2/networking_bgpvpn/resource_association.py +10 -10
- neutronclient/tests/unit/osc/v2/fwaas/test_firewallpolicy.py +8 -8
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/AUTHORS +2 -0
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/METADATA +1 -1
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/RECORD +11 -11
- python_neutronclient-11.3.1.dist-info/pbr.json +1 -0
- python_neutronclient-11.2.0.dist-info/pbr.json +0 -1
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/LICENSE +0 -0
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/WHEEL +0 -0
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/entry_points.txt +0 -0
- {python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/top_level.txt +0 -0
|
@@ -235,7 +235,7 @@ class FirewallPolicyInsertRule(command.Command):
|
|
|
235
235
|
policy_id = client.find_firewall_policy(
|
|
236
236
|
parsed_args.firewall_policy)['id']
|
|
237
237
|
body = self.args2body(parsed_args)
|
|
238
|
-
client.insert_rule_into_policy(policy_id, body)
|
|
238
|
+
client.insert_rule_into_policy(policy_id, **body)
|
|
239
239
|
rule_id = body['firewall_rule_id']
|
|
240
240
|
policy = parsed_args.firewall_policy
|
|
241
241
|
print((_('Inserted firewall rule %(rule)s in firewall policy '
|
|
@@ -264,7 +264,7 @@ class FirewallPolicyRemoveRule(command.Command):
|
|
|
264
264
|
parsed_args.firewall_policy)['id']
|
|
265
265
|
fwr_id = _get_required_firewall_rule(client, parsed_args)
|
|
266
266
|
body = {'firewall_rule_id': fwr_id}
|
|
267
|
-
client.remove_rule_from_policy(policy_id, body)
|
|
267
|
+
client.remove_rule_from_policy(policy_id, **body)
|
|
268
268
|
rule_id = body['firewall_rule_id']
|
|
269
269
|
policy = parsed_args.firewall_policy
|
|
270
270
|
print((_('Removed firewall rule %(rule)s from firewall policy '
|
|
@@ -75,10 +75,10 @@ class CreateBgpvpnResAssoc(command.ShowOne):
|
|
|
75
75
|
body.update(
|
|
76
76
|
arg2body(bgpvpn['id'], parsed_args))
|
|
77
77
|
|
|
78
|
-
if self.
|
|
78
|
+
if self._resource == constants.NETWORK_ASSOC:
|
|
79
79
|
obj = client.create_bgpvpn_network_association(
|
|
80
80
|
bgpvpn['id'], **body)
|
|
81
|
-
elif self.
|
|
81
|
+
elif self._resource == constants.PORT_ASSOC:
|
|
82
82
|
obj = client.create_bgpvpn_port_association(bgpvpn['id'], **body)
|
|
83
83
|
else:
|
|
84
84
|
obj = client.create_bgpvpn_router_association(
|
|
@@ -123,10 +123,10 @@ class SetBgpvpnResAssoc(command.Command):
|
|
|
123
123
|
arg2body = getattr(self, '_args2body', None)
|
|
124
124
|
if callable(arg2body):
|
|
125
125
|
body = arg2body(bgpvpn['id'], parsed_args)
|
|
126
|
-
if self.
|
|
126
|
+
if self._resource == constants.NETWORK_ASSOC:
|
|
127
127
|
client.update_bgpvpn_network_association(
|
|
128
128
|
bgpvpn['id'], parsed_args.resource_association_id, **body)
|
|
129
|
-
elif self.
|
|
129
|
+
elif self._resource == constants.PORT_ASSOC:
|
|
130
130
|
client.update_bgpvpn_port_association(
|
|
131
131
|
bgpvpn['id'], parsed_args.resource_association_id, **body)
|
|
132
132
|
else:
|
|
@@ -165,9 +165,9 @@ class DeleteBgpvpnResAssoc(command.Command):
|
|
|
165
165
|
fails = 0
|
|
166
166
|
for id in parsed_args.resource_association_ids:
|
|
167
167
|
try:
|
|
168
|
-
if self.
|
|
168
|
+
if self._resource == constants.NETWORK_ASSOC:
|
|
169
169
|
client.delete_bgpvpn_network_association(bgpvpn['id'], id)
|
|
170
|
-
elif self.
|
|
170
|
+
elif self._resource == constants.PORT_ASSOC:
|
|
171
171
|
client.delete_bgpvpn_port_association(bgpvpn['id'], id)
|
|
172
172
|
else:
|
|
173
173
|
client.delete_bgpvpn_router_association(bgpvpn['id'], id)
|
|
@@ -221,10 +221,10 @@ class ListBgpvpnResAssoc(command.Lister):
|
|
|
221
221
|
params = {}
|
|
222
222
|
if parsed_args.property:
|
|
223
223
|
params.update(parsed_args.property)
|
|
224
|
-
if self.
|
|
224
|
+
if self._resource == constants.NETWORK_ASSOC:
|
|
225
225
|
objs = client.bgpvpn_network_associations(
|
|
226
226
|
bgpvpn['id'], retrieve_all=True, **params)
|
|
227
|
-
elif self.
|
|
227
|
+
elif self._resource == constants.PORT_ASSOC:
|
|
228
228
|
objs = client.bgpvpn_port_associations(
|
|
229
229
|
bgpvpn['id'], retrieve_all=True, **params)
|
|
230
230
|
else:
|
|
@@ -265,10 +265,10 @@ class ShowBgpvpnResAssoc(command.ShowOne):
|
|
|
265
265
|
def take_action(self, parsed_args):
|
|
266
266
|
client = self.app.client_manager.network
|
|
267
267
|
bgpvpn = client.find_bgpvpn(parsed_args.bgpvpn)
|
|
268
|
-
if self.
|
|
268
|
+
if self._resource == constants.NETWORK_ASSOC:
|
|
269
269
|
obj = client.get_bgpvpn_network_association(
|
|
270
270
|
bgpvpn['id'], parsed_args.resource_association_id)
|
|
271
|
-
elif self.
|
|
271
|
+
elif self._resource == constants.PORT_ASSOC:
|
|
272
272
|
obj = client.get_bgpvpn_port_association(
|
|
273
273
|
bgpvpn['id'], parsed_args.resource_association_id)
|
|
274
274
|
else:
|
|
@@ -507,12 +507,12 @@ class TestFirewallPolicyInsertRule(TestFirewallPolicy):
|
|
|
507
507
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
508
508
|
result = self.cmd.take_action(parsed_args)
|
|
509
509
|
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
510
|
+
body = {
|
|
511
|
+
'firewall_rule_id': rule,
|
|
512
|
+
'insert_before': before,
|
|
513
|
+
'insert_after': after
|
|
514
|
+
}
|
|
515
|
+
self.mocked.assert_called_once_with(target, **body)
|
|
516
516
|
self.assertIsNone(result)
|
|
517
517
|
self.assertEqual(1, self.networkclient.find_firewall_policy.call_count)
|
|
518
518
|
self.assertEqual(3, self.networkclient.find_firewall_rule.call_count)
|
|
@@ -560,8 +560,8 @@ class TestFirewallPolicyRemoveRule(TestFirewallPolicy):
|
|
|
560
560
|
]
|
|
561
561
|
parsed_args = self.check_parser(self.cmd, arglist, verifylist)
|
|
562
562
|
result = self.cmd.take_action(parsed_args)
|
|
563
|
-
|
|
564
|
-
|
|
563
|
+
body = {'firewall_rule_id': rule}
|
|
564
|
+
self.mocked.assert_called_once_with(target, **body)
|
|
565
565
|
self.assertIsNone(result)
|
|
566
566
|
self.assertEqual(1, self.networkclient.find_firewall_policy.call_count)
|
|
567
567
|
self.assertEqual(1, self.networkclient.find_firewall_rule.call_count)
|
|
@@ -27,6 +27,7 @@ Assaf Muller <amuller@redhat.com>
|
|
|
27
27
|
AvnishPal <avnish.pal@nectechnologies.in>
|
|
28
28
|
Ben Andrews <andrewsben@gmail.com>
|
|
29
29
|
Bence Romsics <bence.romsics@gmail.com>
|
|
30
|
+
Benjamin Reichel <b.reichel@syseleven.de>
|
|
30
31
|
Bernard Cafarelli <bcafarel@redhat.com>
|
|
31
32
|
Bertrand Lallau <bertrand.lallau@thalesgroup.com>
|
|
32
33
|
Bhuvan Arumugam <bhuvan@apache.org>
|
|
@@ -247,6 +248,7 @@ Tin Lam <tl3438@att.com>
|
|
|
247
248
|
Toshiaki Higuchi <higuchi@mxj.nes.nec.co.jp>
|
|
248
249
|
Tovin Seven <vinhnt@vn.fujitsu.com>
|
|
249
250
|
Ukesh Kumar Vasudevan <ukeshkumar@gmail.com>
|
|
251
|
+
Valentin Chassignol <valentin.chassignol@infomaniak.com>
|
|
250
252
|
Vic Howard <victor.r.howard@gmail.com>
|
|
251
253
|
Vieri <15050873171@163.com>
|
|
252
254
|
Vikash082 <vikash.kumar@oneconvergence.com>
|
|
@@ -86,7 +86,7 @@ neutronclient/osc/v2/dynamic_routing/constants.py,sha256=KFLE_7d9CTHZxuUIQy_9lGW
|
|
|
86
86
|
neutronclient/osc/v2/fwaas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
87
87
|
neutronclient/osc/v2/fwaas/constants.py,sha256=BQAsJy3uJf29QOajizWu1ZTaCLGvyNlPqCJw6ouQz5U,857
|
|
88
88
|
neutronclient/osc/v2/fwaas/firewallgroup.py,sha256=M9l3ZxB8hq9BT8CfuFdwI8tjz7vfncqEhYoZIqorZfA,14801
|
|
89
|
-
neutronclient/osc/v2/fwaas/firewallpolicy.py,sha256=
|
|
89
|
+
neutronclient/osc/v2/fwaas/firewallpolicy.py,sha256=ii0QPnfioZxvniO6LfcNQCXcUY-ujh7CtFz76jsmx7k,16063
|
|
90
90
|
neutronclient/osc/v2/fwaas/firewallrule.py,sha256=tugL_5wUHBoA0RH8FNQw5NlJQuWihj4q-2xoYaG8HHU,18334
|
|
91
91
|
neutronclient/osc/v2/lbaas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
92
92
|
neutronclient/osc/v2/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -96,7 +96,7 @@ neutronclient/osc/v2/networking_bgpvpn/bgpvpn.py,sha256=wbAh4c7aUuR-8mdLo-JLv5Nm
|
|
|
96
96
|
neutronclient/osc/v2/networking_bgpvpn/constants.py,sha256=ySsJSFeBUhnxnBiyy0WmcwNtGqGkNNUiZsMPxArp6S4,1046
|
|
97
97
|
neutronclient/osc/v2/networking_bgpvpn/network_association.py,sha256=TN8WbcZu7mJRuyRFKpYc1-221v7okr2ata90-9EtjTE,2230
|
|
98
98
|
neutronclient/osc/v2/networking_bgpvpn/port_association.py,sha256=iAyqriCy3sZ12IRrm1Jt2wahFf-MDHzo39tQ2oIGljU,12105
|
|
99
|
-
neutronclient/osc/v2/networking_bgpvpn/resource_association.py,sha256=
|
|
99
|
+
neutronclient/osc/v2/networking_bgpvpn/resource_association.py,sha256=O98Io-YilE9EiSiQhz28fScYk6emzJ6ndWHwJnLNhXU,11329
|
|
100
100
|
neutronclient/osc/v2/networking_bgpvpn/router_association.py,sha256=CEzyZXHf5I0ZBLJOL6wOJJim_ZS6IV8QesVKzfTpz9E,4321
|
|
101
101
|
neutronclient/osc/v2/sfc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
102
102
|
neutronclient/osc/v2/sfc/sfc_flow_classifier.py,sha256=IH0zXHRBifresv2ApEeFFWi0GYPiY5cmsKK_yDjcOoc,13897
|
|
@@ -133,7 +133,7 @@ neutronclient/tests/unit/osc/v2/fwaas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
133
133
|
neutronclient/tests/unit/osc/v2/fwaas/common.py,sha256=KLmbYhSltirKuXwO_MP-l1VhoMyxpcA365eHd0XnqNc,10449
|
|
134
134
|
neutronclient/tests/unit/osc/v2/fwaas/fakes.py,sha256=s3Vo4XD4LUYUJeJGjOAJOfXdnLPzMafdYiMGPrhqLJg,5669
|
|
135
135
|
neutronclient/tests/unit/osc/v2/fwaas/test_firewallgroup.py,sha256=SoUN52Z-jUGMhlFYvGfwNmY5AYJQXfZn_64vcsTR2Ko,25840
|
|
136
|
-
neutronclient/tests/unit/osc/v2/fwaas/test_firewallpolicy.py,sha256=
|
|
136
|
+
neutronclient/tests/unit/osc/v2/fwaas/test_firewallpolicy.py,sha256=ElglQ1fakovOKKZC_2zPqmzI5k6bxU4rAtmpRYw3FbA,22107
|
|
137
137
|
neutronclient/tests/unit/osc/v2/fwaas/test_firewallrule.py,sha256=b5p0V_nQoAvzH9YF50RHuLLIuoUoV_q1ccNolbVNFlM,30747
|
|
138
138
|
neutronclient/tests/unit/osc/v2/lbaas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
139
139
|
neutronclient/tests/unit/osc/v2/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -163,11 +163,11 @@ neutronclient/tests/unit/osc/v2/vpnaas/test_ipsecpolicy.py,sha256=XwOQvyj54yHd2x
|
|
|
163
163
|
neutronclient/tests/unit/osc/v2/vpnaas/test_vpnservice.py,sha256=5JmLNFJF3zr4R72GkgJdrfuW3RdNt5zgdyrxC-Rr4iE,9748
|
|
164
164
|
neutronclient/v2_0/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
165
165
|
neutronclient/v2_0/client.py,sha256=4lCtcKhz1jnnr-66u7TezZ-BXmOsHc5OM_wkD-gv_sQ,116617
|
|
166
|
-
python_neutronclient-11.
|
|
167
|
-
python_neutronclient-11.
|
|
168
|
-
python_neutronclient-11.
|
|
169
|
-
python_neutronclient-11.
|
|
170
|
-
python_neutronclient-11.
|
|
171
|
-
python_neutronclient-11.
|
|
172
|
-
python_neutronclient-11.
|
|
173
|
-
python_neutronclient-11.
|
|
166
|
+
python_neutronclient-11.3.1.dist-info/AUTHORS,sha256=Vwkc4-pUljg4gx2PZMY9DRog_Bw3e93AtNQY1E3Q2ho,13427
|
|
167
|
+
python_neutronclient-11.3.1.dist-info/LICENSE,sha256=XfKg2H1sVi8OoRxoisUlMqoo10TKvHmU_wU39ks7MyA,10143
|
|
168
|
+
python_neutronclient-11.3.1.dist-info/METADATA,sha256=kDlacdXOovDW6LybG3tKnAAl4EiqHE-lRqeraTMzV_I,3243
|
|
169
|
+
python_neutronclient-11.3.1.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
170
|
+
python_neutronclient-11.3.1.dist-info/entry_points.txt,sha256=L9MrMrEJBxrMf_pr6SIFtFXVoZ5Cru90kyP938vtAvI,10729
|
|
171
|
+
python_neutronclient-11.3.1.dist-info/pbr.json,sha256=nLuAlN2iAGKMoqjcEsV-LZwojiwBsgW2uxnUzMT2Hxg,46
|
|
172
|
+
python_neutronclient-11.3.1.dist-info/top_level.txt,sha256=SxHuzHShRY_O8UAQAiwIMIjwHRm7Tr05U-cvrn1fLgU,14
|
|
173
|
+
python_neutronclient-11.3.1.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "a10390c", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "4e48e90", "is_release": true}
|
|
File without changes
|
|
File without changes
|
{python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_neutronclient-11.2.0.dist-info → python_neutronclient-11.3.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|