Skip to content

Commit 55c55a9

Browse files
author
John Anderson
committed
added new action for interface connections
1 parent b641d93 commit 55c55a9

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Change Log
2+
## 0.3.2
3+
- Added new action for getting device interface connections.
24
## 0.3.0
35
- Added ability to save results into st2 key/value store. Useful when the result from Netbox is very large and will be piped to another action.
46
## 0.2.1
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
name: dcim_get_interface_connections
3+
pack: netbox
4+
runner_type: "python-script"
5+
description: Get device interface connections from NetBox
6+
enabled: true
7+
entry_point: base_get_action.py
8+
parameters:
9+
endpoint_uri:
10+
immutable: true
11+
default: "/api/dcim/interface-connections/"
12+
limit:
13+
type: integer
14+
default: 50
15+
description: Max limit of objects to return from the request.
16+
offset:
17+
type: integer
18+
default: 0
19+
description: Offset result set by X objects. Used for pagination.
20+
connection_status:
21+
type: string
22+
description: Status of the connection
23+
site:
24+
type: string
25+
description: Site name
26+
device:
27+
type: string
28+
description: Device name
29+
save_in_key_store:
30+
type: boolean
31+
default: false
32+
description: Save the result of the action as a json object in the st2 key store. Used when the expected result from Netbox is very large and the result will be piped to another action. You must also specify a save_in_key_store_keyname and an optional save_in_key_store_ttl.
33+
save_in_key_store_key_name:
34+
type: string
35+
description: Name of the key to store the json result value in the st2 key store. Must be used with save_in_key_store and optionally save_in_key_store_ttl.
36+
save_in_key_store_ttl:
37+
type: integer
38+
default: 60
39+
description: TTL (seconds) of the saved json result in the st2 key store. Defaults to 60 seconds. Must be used with save_in_key_store and save_in_key_store_key_name.

pack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ keywords:
66
- networking
77
- ipam
88
- dcim
9-
version: 0.3.1
9+
version: 0.3.2
1010
author: John Anderson, Jefferson White
1111

0 commit comments

Comments
 (0)