Skip to content

Commit 69cb91a

Browse files
authored
Merge pull request #56 from nzlosh/fail_on_http_errors
Fail on http errors
2 parents 6d58e80 + 9c47a9f commit 69cb91a

File tree

638 files changed

+17050
-1735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

638 files changed

+17050
-1735
lines changed

CHANGES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Change Log
22

3+
## 3.4.4
4+
5+
- Add action parameter fail_non_2xx to allow the user to indicate if the
6+
the action has failed when non-2xx http status codes are return by netbox.
7+
The default value is False, which is to maintain the current pack behaviour.
8+
9+
- Regenerated actions against v4.3 spec.
10+
11+
- Applied Black code format to python code.
12+
313
## 3.4.3
414

515
- Enable use of encrypted KVs in pack config schema
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This action was auto generated from the NetBox API Swagger Spec
2+
# NetBox API version: 4.3
3+
description: "Delete a Circuit group assignment object."
4+
enabled: true
5+
entry_point: run.py
6+
name: delete.circuits.circuit_group_assignments
7+
parameters:
8+
endpoint_uri:
9+
default: "/circuits/circuit-group-assignments/{{ id }}/"
10+
immutable: true
11+
type: string
12+
http_verb:
13+
default: delete
14+
immutable: true
15+
type: string
16+
get_detail_route_eligible:
17+
default: true
18+
immutable: true
19+
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
24+
id:
25+
required: true
26+
type: integer
27+
description: "ID of the object to delete."
28+
runner_type: python-script
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This action was auto generated from the NetBox API Swagger Spec
2+
# NetBox API version: 4.3
3+
description: "Delete a circuit group object."
4+
enabled: true
5+
entry_point: run.py
6+
name: delete.circuits.circuit_groups
7+
parameters:
8+
endpoint_uri:
9+
default: "/circuits/circuit-groups/{{ id }}/"
10+
immutable: true
11+
type: string
12+
http_verb:
13+
default: delete
14+
immutable: true
15+
type: string
16+
get_detail_route_eligible:
17+
default: true
18+
immutable: true
19+
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
24+
id:
25+
required: true
26+
type: integer
27+
description: "ID of the object to delete."
28+
runner_type: python-script

actions/delete.circuits.circuit_terminations.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This action was auto generated from the NetBox API Swagger Spec
2-
# NetBox API version: 4.0
2+
# NetBox API version: 4.3
33
description: "Delete a circuit termination object."
44
enabled: true
55
entry_point: run.py
@@ -17,6 +17,10 @@ parameters:
1717
default: true
1818
immutable: true
1919
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
2024
id:
2125
required: true
2226
type: integer

actions/delete.circuits.circuit_types.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This action was auto generated from the NetBox API Swagger Spec
2-
# NetBox API version: 4.0
2+
# NetBox API version: 4.3
33
description: "Delete a circuit type object."
44
enabled: true
55
entry_point: run.py
@@ -17,6 +17,10 @@ parameters:
1717
default: true
1818
immutable: true
1919
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
2024
id:
2125
required: true
2226
type: integer

actions/delete.circuits.circuits.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This action was auto generated from the NetBox API Swagger Spec
2-
# NetBox API version: 4.0
2+
# NetBox API version: 4.3
33
description: "Delete a circuit object."
44
enabled: true
55
entry_point: run.py
@@ -17,6 +17,10 @@ parameters:
1717
default: true
1818
immutable: true
1919
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
2024
id:
2125
required: true
2226
type: integer

actions/delete.circuits.provider_accounts.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This action was auto generated from the NetBox API Swagger Spec
2-
# NetBox API version: 4.0
2+
# NetBox API version: 4.3
33
description: "Delete a provider account object."
44
enabled: true
55
entry_point: run.py
@@ -17,6 +17,10 @@ parameters:
1717
default: true
1818
immutable: true
1919
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
2024
id:
2125
required: true
2226
type: integer

actions/delete.circuits.provider_networks.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This action was auto generated from the NetBox API Swagger Spec
2-
# NetBox API version: 4.0
2+
# NetBox API version: 4.3
33
description: "Delete a provider network object."
44
enabled: true
55
entry_point: run.py
@@ -17,6 +17,10 @@ parameters:
1717
default: true
1818
immutable: true
1919
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
2024
id:
2125
required: true
2226
type: integer

actions/delete.circuits.providers.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This action was auto generated from the NetBox API Swagger Spec
2-
# NetBox API version: 4.0
2+
# NetBox API version: 4.3
33
description: "Delete a provider object."
44
enabled: true
55
entry_point: run.py
@@ -17,6 +17,10 @@ parameters:
1717
default: true
1818
immutable: true
1919
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
2024
id:
2125
required: true
2226
type: integer
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This action was auto generated from the NetBox API Swagger Spec
2+
# NetBox API version: 4.3
3+
description: "Delete a virtual circuit termination object."
4+
enabled: true
5+
entry_point: run.py
6+
name: delete.circuits.virtual_circuit_terminations
7+
parameters:
8+
endpoint_uri:
9+
default: "/circuits/virtual-circuit-terminations/{{ id }}/"
10+
immutable: true
11+
type: string
12+
http_verb:
13+
default: delete
14+
immutable: true
15+
type: string
16+
get_detail_route_eligible:
17+
default: true
18+
immutable: true
19+
type: boolean
20+
fail_non_2xx:
21+
default: false
22+
type: boolean
23+
description: Set action as failed when http return reponse status isn't 2xx.
24+
id:
25+
required: true
26+
type: integer
27+
description: "ID of the object to delete."
28+
runner_type: python-script

0 commit comments

Comments
 (0)