@itentialopensource/adapter-openstack_neutron 0.1.1 → 1.0.0

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.
Files changed (65) hide show
  1. package/CALLS.md +305 -305
  2. package/CHANGELOG.md +8 -1
  3. package/adapterBase.js +23 -1
  4. package/entities/APIVersions/action.json +4 -2
  5. package/entities/AddressGroups/action.json +28 -7
  6. package/entities/AddressScopes/action.json +10 -5
  7. package/entities/Agents/action.json +8 -4
  8. package/entities/AutoAllocatedTopologies/action.json +4 -2
  9. package/entities/AvailabilityZones/action.json +2 -1
  10. package/entities/BGPPeer/action.json +10 -5
  11. package/entities/BGPSpeaker/action.json +22 -11
  12. package/entities/BGPVPNs/action.json +10 -5
  13. package/entities/DHCPAgentScheduler/action.json +8 -4
  14. package/entities/Extensions/action.json +4 -2
  15. package/entities/FWaaSV20CURRENTFwaasFirewallGroupsFirewallPoliciesFirewallRules/action.json +34 -17
  16. package/entities/FirewallLogs/action.json +10 -5
  17. package/entities/FloatingIPPoolsFloatingipPools/action.json +2 -1
  18. package/entities/FloatingIPsFloatingips/action.json +10 -5
  19. package/entities/FloatingIPsPortForwarding/action.json +10 -5
  20. package/entities/L3AgentScheduler/action.json +8 -4
  21. package/entities/LocalIPAssociationsPortAssociations/action.json +6 -3
  22. package/entities/LocalIPsLocalIps/action.json +10 -5
  23. package/entities/LogResource/action.json +10 -5
  24. package/entities/LoggableResource/action.json +2 -1
  25. package/entities/LoggingResources/action.json +10 -5
  26. package/entities/MeteringLabelsAndRulesMeteringLabelsMeteringLabelRules/action.json +16 -8
  27. package/entities/NetworkAssociations/action.json +8 -4
  28. package/entities/NetworkIPAvailabilityAndUsageStats/action.json +4 -2
  29. package/entities/NetworkSegmentRanges/action.json +10 -5
  30. package/entities/NetworkingFlavorsFrameworkV20CURRENTFlavorServiceProfile/action.json +24 -12
  31. package/entities/Networks/action.json +10 -5
  32. package/entities/PortAssociations/action.json +10 -5
  33. package/entities/Ports/action.json +10 -5
  34. package/entities/QoSBandwidthLimitRules/action.json +10 -5
  35. package/entities/QoSDSCPMarkingRules/action.json +10 -5
  36. package/entities/QoSMinimumBandwidthRules/action.json +10 -5
  37. package/entities/QoSMinimumPacketRateRules/action.json +10 -5
  38. package/entities/QoSPacketRateLimitRules/action.json +10 -5
  39. package/entities/QoSPoliciesQos/action.json +10 -5
  40. package/entities/QoSRuleTypes/action.json +4 -2
  41. package/entities/QualityOfServiceMinimumPacketRateRuleAliasAPI/action.json +6 -3
  42. package/entities/QualityOfServiceRulesAliasAPI/action.json +18 -9
  43. package/entities/QuotasDetailsExtensionQuotaDetails/action.json +2 -1
  44. package/entities/QuotasExtensionQuotas/action.json +10 -5
  45. package/entities/RBACPolicies/action.json +10 -5
  46. package/entities/RouterAssociations/action.json +10 -5
  47. package/entities/RouterNDPProxyNdpProxies/action.json +10 -5
  48. package/entities/RoutersConntrackHelperCTTargetRules/action.json +10 -5
  49. package/entities/RoutersRouters/action.json +18 -9
  50. package/entities/SecurityGroupRulesSecurityGroupRules/action.json +8 -4
  51. package/entities/SecurityGroupsSecurityGroups/action.json +10 -5
  52. package/entities/Segments/action.json +10 -5
  53. package/entities/ServiceProviders/action.json +2 -1
  54. package/entities/SubnetPoolPrefixOperationsSubnetpoolPrefixOps/action.json +4 -2
  55. package/entities/SubnetPoolsExtensionSubnetpools/action.json +10 -5
  56. package/entities/Subnets/action.json +10 -5
  57. package/entities/TagExtensionTags/action.json +12 -6
  58. package/entities/TapAsAService/action.json +20 -10
  59. package/entities/TrunkNetworking/action.json +16 -8
  60. package/entities/VPNaaS20VpnVpnservicesIkepoliciesIpsecpoliciesEndpointGroupsIpsecSiteConnections/action.json +50 -25
  61. package/package.json +2 -2
  62. package/refs?service=git-upload-pack +0 -0
  63. package/report/adapterInfo.json +4 -4
  64. package/sampleProperties.json +1 -0
  65. package/test/unit/adapterTestUnit.js +2 -0
@@ -4,7 +4,8 @@
4
4
  "name": "listIKEPolicies",
5
5
  "protocol": "REST",
6
6
  "method": "GET",
7
- "entitypath": "{base_path}/{version}/v2.0/vpn/ikepolicies?{query}",
7
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
8
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
8
9
  "requestSchema": "schema.json",
9
10
  "responseSchema": "schema.json",
10
11
  "timeout": 0,
@@ -25,7 +26,8 @@
25
26
  "name": "createIKEPolicy",
26
27
  "protocol": "REST",
27
28
  "method": "POST",
28
- "entitypath": "{base_path}/{version}/v2.0/vpn/ikepolicies?{query}",
29
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
30
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
29
31
  "requestSchema": "schema.json",
30
32
  "responseSchema": "schema.json",
31
33
  "timeout": 0,
@@ -45,7 +47,8 @@
45
47
  "name": "showIKEPolicyDetails",
46
48
  "protocol": "REST",
47
49
  "method": "GET",
48
- "entitypath": "{base_path}/{version}/v2.0/vpn/ikepolicies/{pathv1}?{query}",
50
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
51
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
49
52
  "requestSchema": "schema.json",
50
53
  "responseSchema": "schema.json",
51
54
  "timeout": 0,
@@ -66,7 +69,8 @@
66
69
  "name": "updateIKEPolicy",
67
70
  "protocol": "REST",
68
71
  "method": "PUT",
69
- "entitypath": "{base_path}/{version}/v2.0/vpn/ikepolicies/{pathv1}?{query}",
72
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
73
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
70
74
  "requestSchema": "schema.json",
71
75
  "responseSchema": "schema.json",
72
76
  "timeout": 0,
@@ -86,7 +90,8 @@
86
90
  "name": "removeIKEPolicy",
87
91
  "protocol": "REST",
88
92
  "method": "DELETE",
89
- "entitypath": "{base_path}/{version}/v2.0/vpn/ikepolicies/{pathv1}?{query}",
93
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
94
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
90
95
  "requestSchema": "schema.json",
91
96
  "responseSchema": "schema.json",
92
97
  "timeout": 0,
@@ -106,7 +111,8 @@
106
111
  "name": "listIPsecPolicies",
107
112
  "protocol": "REST",
108
113
  "method": "GET",
109
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsecpolicies?{query}",
114
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
115
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
110
116
  "requestSchema": "schema.json",
111
117
  "responseSchema": "schema.json",
112
118
  "timeout": 0,
@@ -127,7 +133,8 @@
127
133
  "name": "createIPsecPolicy",
128
134
  "protocol": "REST",
129
135
  "method": "POST",
130
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsecpolicies?{query}",
136
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
137
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
131
138
  "requestSchema": "schema.json",
132
139
  "responseSchema": "schema.json",
133
140
  "timeout": 0,
@@ -147,7 +154,8 @@
147
154
  "name": "showIPsecPolicy",
148
155
  "protocol": "REST",
149
156
  "method": "GET",
150
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsecpolicies/{pathv1}?{query}",
157
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
158
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
151
159
  "requestSchema": "schema.json",
152
160
  "responseSchema": "schema.json",
153
161
  "timeout": 0,
@@ -168,7 +176,8 @@
168
176
  "name": "updateIPsecPolicy",
169
177
  "protocol": "REST",
170
178
  "method": "PUT",
171
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsecpolicies/{pathv1}?{query}",
179
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
180
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
172
181
  "requestSchema": "schema.json",
173
182
  "responseSchema": "schema.json",
174
183
  "timeout": 0,
@@ -188,7 +197,8 @@
188
197
  "name": "removeIPsecPolicy",
189
198
  "protocol": "REST",
190
199
  "method": "DELETE",
191
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsecpolicies/{pathv1}?{query}",
200
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
201
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
192
202
  "requestSchema": "schema.json",
193
203
  "responseSchema": "schema.json",
194
204
  "timeout": 0,
@@ -208,7 +218,8 @@
208
218
  "name": "listIPsecConnections",
209
219
  "protocol": "REST",
210
220
  "method": "GET",
211
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsec-site-connections?{query}",
221
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
222
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
212
223
  "requestSchema": "schema.json",
213
224
  "responseSchema": "schema.json",
214
225
  "timeout": 0,
@@ -229,7 +240,8 @@
229
240
  "name": "createIPsecConnection",
230
241
  "protocol": "REST",
231
242
  "method": "POST",
232
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsec-site-connections?{query}",
243
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
244
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
233
245
  "requestSchema": "schema.json",
234
246
  "responseSchema": "schema.json",
235
247
  "timeout": 0,
@@ -249,7 +261,8 @@
249
261
  "name": "showIPsecConnection",
250
262
  "protocol": "REST",
251
263
  "method": "GET",
252
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsec-site-connections/{pathv1}?{query}",
264
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
265
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
253
266
  "requestSchema": "schema.json",
254
267
  "responseSchema": "schema.json",
255
268
  "timeout": 0,
@@ -270,7 +283,8 @@
270
283
  "name": "updateIPsecConnection",
271
284
  "protocol": "REST",
272
285
  "method": "PUT",
273
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsec-site-connections/{pathv1}?{query}",
286
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
287
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
274
288
  "requestSchema": "schema.json",
275
289
  "responseSchema": "schema.json",
276
290
  "timeout": 0,
@@ -290,7 +304,8 @@
290
304
  "name": "removeIPsecConnection",
291
305
  "protocol": "REST",
292
306
  "method": "DELETE",
293
- "entitypath": "{base_path}/{version}/v2.0/vpn/ipsec-site-connections/{pathv1}?{query}",
307
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
308
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
294
309
  "requestSchema": "schema.json",
295
310
  "responseSchema": "schema.json",
296
311
  "timeout": 0,
@@ -310,7 +325,8 @@
310
325
  "name": "listVPNEndpointGroups",
311
326
  "protocol": "REST",
312
327
  "method": "GET",
313
- "entitypath": "{base_path}/{version}/v2.0/vpn/endpoint-groups?{query}",
328
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
329
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
314
330
  "requestSchema": "schema.json",
315
331
  "responseSchema": "schema.json",
316
332
  "timeout": 0,
@@ -331,7 +347,8 @@
331
347
  "name": "createVPNEndpointGroup",
332
348
  "protocol": "REST",
333
349
  "method": "POST",
334
- "entitypath": "{base_path}/{version}/v2.0/vpn/endpoint-groups?{query}",
350
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
351
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
335
352
  "requestSchema": "schema.json",
336
353
  "responseSchema": "schema.json",
337
354
  "timeout": 0,
@@ -351,7 +368,8 @@
351
368
  "name": "showVPNEndpointGroup",
352
369
  "protocol": "REST",
353
370
  "method": "GET",
354
- "entitypath": "{base_path}/{version}/v2.0/vpn/endpoint-groups/{pathv1}?{query}",
371
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
372
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
355
373
  "requestSchema": "schema.json",
356
374
  "responseSchema": "schema.json",
357
375
  "timeout": 0,
@@ -372,7 +390,8 @@
372
390
  "name": "updateVPNEndpointGroup",
373
391
  "protocol": "REST",
374
392
  "method": "PUT",
375
- "entitypath": "{base_path}/{version}/v2.0/vpn/endpoint-groups/{pathv1}?{query}",
393
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
394
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
376
395
  "requestSchema": "schema.json",
377
396
  "responseSchema": "schema.json",
378
397
  "timeout": 0,
@@ -392,7 +411,8 @@
392
411
  "name": "removeVPNEndpointGroup",
393
412
  "protocol": "REST",
394
413
  "method": "DELETE",
395
- "entitypath": "{base_path}/{version}/v2.0/vpn/endpoint-groups/{pathv1}?{query}",
414
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
415
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
396
416
  "requestSchema": "schema.json",
397
417
  "responseSchema": "schema.json",
398
418
  "timeout": 0,
@@ -412,7 +432,8 @@
412
432
  "name": "listVPNServices",
413
433
  "protocol": "REST",
414
434
  "method": "GET",
415
- "entitypath": "{base_path}/{version}/v2.0/vpn/vpnservices?{query}",
435
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
436
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
416
437
  "requestSchema": "schema.json",
417
438
  "responseSchema": "schema.json",
418
439
  "timeout": 0,
@@ -433,7 +454,8 @@
433
454
  "name": "createVPNService",
434
455
  "protocol": "REST",
435
456
  "method": "POST",
436
- "entitypath": "{base_path}/{version}/v2.0/vpn/vpnservices?{query}",
457
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
458
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
437
459
  "requestSchema": "schema.json",
438
460
  "responseSchema": "schema.json",
439
461
  "timeout": 0,
@@ -453,7 +475,8 @@
453
475
  "name": "showVPNServiceDetails",
454
476
  "protocol": "REST",
455
477
  "method": "GET",
456
- "entitypath": "{base_path}/{version}/v2.0/vpn/vpnservices/{pathv1}?{query}",
478
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
479
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
457
480
  "requestSchema": "schema.json",
458
481
  "responseSchema": "schema.json",
459
482
  "timeout": 0,
@@ -474,7 +497,8 @@
474
497
  "name": "updateVPNService",
475
498
  "protocol": "REST",
476
499
  "method": "PUT",
477
- "entitypath": "{base_path}/{version}/v2.0/vpn/vpnservices/{pathv1}?{query}",
500
+ "entitypath":{"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
501
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
478
502
  "requestSchema": "schema.json",
479
503
  "responseSchema": "schema.json",
480
504
  "timeout": 0,
@@ -494,7 +518,8 @@
494
518
  "name": "removeVPNService",
495
519
  "protocol": "REST",
496
520
  "method": "DELETE",
497
- "entitypath": "{base_path}/{version}/v2.0/vpn/vpnservices/{pathv1}?{query}",
521
+ "entitypath": {"v0":"{base_path}/{version}/v2.0/logging/logging_resources/{pathv1}/firewall_logs?{query}",
522
+ "v1": "{base_path}/{version}/logging/logging_resources/{pathv1}/firewall_logs?{query}" },
498
523
  "requestSchema": "schema.json",
499
524
  "responseSchema": "schema.json",
500
525
  "timeout": 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-openstack_neutron",
3
- "version": "0.1.1",
3
+ "version": "1.0.0",
4
4
  "description": "This adapter integrates with system described as: Openstack Networking (Neutron) Service",
5
5
  "main": "adapter.js",
6
6
  "systemName": "Openstack Neutron",
@@ -55,7 +55,7 @@
55
55
  "author": "Itential",
56
56
  "homepage": "https://gitlab.com/itentialopensource/adapters/cloud/adapter-openstack_neutron#readme",
57
57
  "dependencies": {
58
- "@itentialopensource/adapter-utils": "^4.47.0",
58
+ "@itentialopensource/adapter-utils": "^4.48.4",
59
59
  "ajv": "^6.12.0",
60
60
  "axios": "^0.21.0",
61
61
  "commander": "^2.20.0",
Binary file
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.0",
2
+ "version": "0.1.1",
3
3
  "configLines": 19405,
4
4
  "scriptLines": 1707,
5
- "codeLines": 38924,
6
- "testLines": 19553,
5
+ "codeLines": 38946,
6
+ "testLines": 19555,
7
7
  "testCases": 997,
8
- "totalCodeLines": 60184,
8
+ "totalCodeLines": 60208,
9
9
  "wfTasks": 322
10
10
  }
@@ -5,6 +5,7 @@
5
5
  "host": "192.168.0.108",
6
6
  "port": 9696,
7
7
  "base_path": "",
8
+ "choosepath": "v0",
8
9
  "version": "",
9
10
  "cache_location": "none",
10
11
  "encode_pathvars": true,
@@ -46,6 +46,7 @@ samProps.ssl.accept_invalid_cert = false;
46
46
  samProps.request.attempt_timeout = 1200000;
47
47
  const attemptTimeout = samProps.request.attempt_timeout;
48
48
  const { stub } = samProps;
49
+ const { choosepath } = samProps;
49
50
 
50
51
  // these are the adapter properties. You generally should not need to alter
51
52
  // any of these after they are initially set up
@@ -988,6 +989,7 @@ describe('[unit] Openstack_neutron Adapter Test', () => {
988
989
  try {
989
990
  a.iapFindAdapterPath('{base_path}/{version}', (data, error) => {
990
991
  try {
992
+ console.log(error);
991
993
  assert.equal(undefined, error);
992
994
  assert.notEqual(undefined, data);
993
995
  assert.notEqual(null, data);