python-neutronclient 11.3.0__py3-none-any.whl → 11.4.0__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/vpnaas/vpnservice.py +6 -4
- neutronclient/tests/unit/osc/v2/fwaas/test_firewallpolicy.py +8 -8
- neutronclient/tests/unit/osc/v2/vpnaas/fakes.py +2 -0
- neutronclient/tests/unit/osc/v2/vpnaas/test_vpnservice.py +8 -0
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/AUTHORS +1 -0
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/METADATA +5 -3
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/RECORD +13 -13
- python_neutronclient-11.4.0.dist-info/pbr.json +1 -0
- python_neutronclient-11.3.0.dist-info/pbr.json +0 -1
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/LICENSE +0 -0
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/WHEEL +0 -0
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/entry_points.txt +0 -0
- {python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.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 '
|
|
@@ -36,6 +36,8 @@ _attr_map = (
|
|
|
36
36
|
('status', 'Status', column_util.LIST_BOTH),
|
|
37
37
|
('description', 'Description', column_util.LIST_LONG_ONLY),
|
|
38
38
|
('project_id', 'Project', column_util.LIST_LONG_ONLY),
|
|
39
|
+
('external_v4_ip', 'Ext v4 IP', column_util.LIST_LONG_ONLY),
|
|
40
|
+
('external_v6_ip', 'Ext v6 IP', column_util.LIST_LONG_ONLY),
|
|
39
41
|
)
|
|
40
42
|
|
|
41
43
|
_attr_map_dict = {
|
|
@@ -48,6 +50,8 @@ _attr_map_dict = {
|
|
|
48
50
|
'status': 'Status',
|
|
49
51
|
'description': 'Description',
|
|
50
52
|
'project_id': 'Project',
|
|
53
|
+
'external_v4_ip': 'Ext v4 IP',
|
|
54
|
+
'external_v6_ip': 'Ext v6 IP',
|
|
51
55
|
}
|
|
52
56
|
|
|
53
57
|
|
|
@@ -135,8 +139,7 @@ class CreateVPNService(command.ShowOne):
|
|
|
135
139
|
attrs['router_id'] = _router_id
|
|
136
140
|
obj = client.create_vpn_service(**attrs)
|
|
137
141
|
display_columns, columns = utils.get_osc_show_columns_for_sdk_resource(
|
|
138
|
-
obj, _attr_map_dict, ['location', 'tenant_id'
|
|
139
|
-
'external_v6_ip'])
|
|
142
|
+
obj, _attr_map_dict, ['location', 'tenant_id'])
|
|
140
143
|
data = utils.get_dict_properties(obj, columns)
|
|
141
144
|
return display_columns, data
|
|
142
145
|
|
|
@@ -244,7 +247,6 @@ class ShowVPNService(command.ShowOne):
|
|
|
244
247
|
ignore_missing=False)['id']
|
|
245
248
|
obj = client.get_vpn_service(vpn_id)
|
|
246
249
|
display_columns, columns = utils.get_osc_show_columns_for_sdk_resource(
|
|
247
|
-
obj, _attr_map_dict, ['location', 'tenant_id'
|
|
248
|
-
'external_v6_ip'])
|
|
250
|
+
obj, _attr_map_dict, ['location', 'tenant_id'])
|
|
249
251
|
data = utils.get_dict_properties(obj, columns)
|
|
250
252
|
return (display_columns, data)
|
|
@@ -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)
|
|
@@ -125,6 +125,8 @@ class VPNService(FakeVPNaaS):
|
|
|
125
125
|
('status', 'ACTIVE'),
|
|
126
126
|
('description', 'my-desc-' + uuid.uuid4().hex),
|
|
127
127
|
('project_id', 'project-id-' + uuid.uuid4().hex),
|
|
128
|
+
('external_v4_ip', '192.0.2.42'),
|
|
129
|
+
('external_v6_ip', '2001:0db8:207a:4a3a:053b:6fab:7df9:1afd'),
|
|
128
130
|
))
|
|
129
131
|
|
|
130
132
|
|
|
@@ -106,10 +106,14 @@ class TestVPNService(test_fakes.TestNeutronClientOSCV2):
|
|
|
106
106
|
'Status',
|
|
107
107
|
'Description',
|
|
108
108
|
'Project',
|
|
109
|
+
'Ext v4 IP',
|
|
110
|
+
'Ext v6 IP',
|
|
109
111
|
)
|
|
110
112
|
self.data = _generate_data()
|
|
111
113
|
self.ordered_headers = (
|
|
112
114
|
'Description',
|
|
115
|
+
'Ext v4 IP',
|
|
116
|
+
'Ext v6 IP',
|
|
113
117
|
'Flavor',
|
|
114
118
|
'ID',
|
|
115
119
|
'Name',
|
|
@@ -121,6 +125,8 @@ class TestVPNService(test_fakes.TestNeutronClientOSCV2):
|
|
|
121
125
|
)
|
|
122
126
|
self.ordered_data = (
|
|
123
127
|
_vpnservice['description'],
|
|
128
|
+
_vpnservice['external_v4_ip'],
|
|
129
|
+
_vpnservice['external_v6_ip'],
|
|
124
130
|
_vpnservice['flavor_id'],
|
|
125
131
|
_vpnservice['id'],
|
|
126
132
|
_vpnservice['name'],
|
|
@@ -132,6 +138,8 @@ class TestVPNService(test_fakes.TestNeutronClientOSCV2):
|
|
|
132
138
|
)
|
|
133
139
|
self.ordered_columns = (
|
|
134
140
|
'description',
|
|
141
|
+
'external_v4_ip',
|
|
142
|
+
'external_v6_ip',
|
|
135
143
|
'flavor_id',
|
|
136
144
|
'id',
|
|
137
145
|
'name',
|
|
@@ -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>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-neutronclient
|
|
3
|
-
Version: 11.
|
|
3
|
+
Version: 11.4.0
|
|
4
4
|
Summary: CLI and Client Library for OpenStack Networking
|
|
5
5
|
Home-page: https://docs.openstack.org/python-neutronclient/latest/
|
|
6
6
|
Author: OpenStack Networking Project
|
|
@@ -17,9 +17,11 @@ Classifier: Programming Language :: Python
|
|
|
17
17
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
18
18
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
-
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
24
|
+
Requires-Python: >=3.9
|
|
23
25
|
Requires-Dist: cliff (>=3.4.0)
|
|
24
26
|
Requires-Dist: debtcollector (>=1.2.0)
|
|
25
27
|
Requires-Dist: iso8601 (>=0.1.11)
|
|
@@ -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
|
|
@@ -112,7 +112,7 @@ neutronclient/osc/v2/vpnaas/ikepolicy.py,sha256=Xhf-qproz-hcq-tQ5PNN3i7F7fnBiT2X
|
|
|
112
112
|
neutronclient/osc/v2/vpnaas/ipsec_site_connection.py,sha256=57DitWnWQdH0gINJV4W2a-_8i87lMjzN7XP7PTNCz18,15302
|
|
113
113
|
neutronclient/osc/v2/vpnaas/ipsecpolicy.py,sha256=04-AHCaUetU33palXMgaxe-dYAqxXCBfAHAwojAAg7w,9860
|
|
114
114
|
neutronclient/osc/v2/vpnaas/utils.py,sha256=bCviT5_DpUgewZE0EfYzJvWV1ate_QZDYDiEr4c71t0,4312
|
|
115
|
-
neutronclient/osc/v2/vpnaas/vpnservice.py,sha256=
|
|
115
|
+
neutronclient/osc/v2/vpnaas/vpnservice.py,sha256=4pyieUWMJ26hhTiHIoQH5jN4XKo1pRJIgJ7kOs2p-98,9048
|
|
116
116
|
neutronclient/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
117
|
neutronclient/tests/unit/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
118
118
|
neutronclient/tests/unit/test_casual_args.py,sha256=ckW0_DfdDD0mjUxPAAGjZyzzChp94vg-l2kRvK5YrGA,5814
|
|
@@ -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
|
|
@@ -155,19 +155,19 @@ neutronclient/tests/unit/osc/v2/subnet_onboard/__init__.py,sha256=47DEQpj8HBSa-_
|
|
|
155
155
|
neutronclient/tests/unit/osc/v2/subnet_onboard/test_network_onboard_subnets.py,sha256=YRTVpvZiJ-EfzLQS2UX16IgoIX7vTNm_irglRqEe2YI,1907
|
|
156
156
|
neutronclient/tests/unit/osc/v2/vpnaas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
157
157
|
neutronclient/tests/unit/osc/v2/vpnaas/common.py,sha256=hYbpOr6MM8nZ__HHfrji5OITJO8PcHwMPQOoCnuZQNs,6734
|
|
158
|
-
neutronclient/tests/unit/osc/v2/vpnaas/fakes.py,sha256=
|
|
158
|
+
neutronclient/tests/unit/osc/v2/vpnaas/fakes.py,sha256=oI9C_HE1yfA55w4CWKg6UiAg513WsNigiyeR69m8tAI,7121
|
|
159
159
|
neutronclient/tests/unit/osc/v2/vpnaas/test_endpoint_group.py,sha256=AekVbOf77XsHbyWNQowkC9YDWIg3qsZTQtKtCEKzAuo,8731
|
|
160
160
|
neutronclient/tests/unit/osc/v2/vpnaas/test_ikepolicy.py,sha256=ITofRBb1BloAauESTAQSxaL8ma7ThJakmqf4bRmIIDc,11182
|
|
161
161
|
neutronclient/tests/unit/osc/v2/vpnaas/test_ipsec_site_connection.py,sha256=xfwIWJvc8vWns2xthOaoXxQxCujPDgG5BC1OZYon3wY,13368
|
|
162
162
|
neutronclient/tests/unit/osc/v2/vpnaas/test_ipsecpolicy.py,sha256=XwOQvyj54yHd2xNkPOS0ERRKLLr3zie6H6M4jaOYvMw,10566
|
|
163
|
-
neutronclient/tests/unit/osc/v2/vpnaas/test_vpnservice.py,sha256=
|
|
163
|
+
neutronclient/tests/unit/osc/v2/vpnaas/test_vpnservice.py,sha256=dXPhpvfrEA_uvvZ_nhtCWXzXFX7x3uxGu3p8XohH8Ko,9994
|
|
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.4.0.dist-info/AUTHORS,sha256=Vwkc4-pUljg4gx2PZMY9DRog_Bw3e93AtNQY1E3Q2ho,13427
|
|
167
|
+
python_neutronclient-11.4.0.dist-info/LICENSE,sha256=XfKg2H1sVi8OoRxoisUlMqoo10TKvHmU_wU39ks7MyA,10143
|
|
168
|
+
python_neutronclient-11.4.0.dist-info/METADATA,sha256=Uz7Dc2s_gj9QBoUBKiePGxA-mYpsde7G5PRosQkwMpo,3346
|
|
169
|
+
python_neutronclient-11.4.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
|
|
170
|
+
python_neutronclient-11.4.0.dist-info/entry_points.txt,sha256=L9MrMrEJBxrMf_pr6SIFtFXVoZ5Cru90kyP938vtAvI,10729
|
|
171
|
+
python_neutronclient-11.4.0.dist-info/pbr.json,sha256=a3ri3slk1128Rzxg9kGGP__0iNlS_DKI6kkdar-HHlY,46
|
|
172
|
+
python_neutronclient-11.4.0.dist-info/top_level.txt,sha256=SxHuzHShRY_O8UAQAiwIMIjwHRm7Tr05U-cvrn1fLgU,14
|
|
173
|
+
python_neutronclient-11.4.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "1d7a13a", "is_release": true}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "cb9aae5", "is_release": true}
|
|
File without changes
|
|
File without changes
|
{python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{python_neutronclient-11.3.0.dist-info → python_neutronclient-11.4.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|