Skip to content

Commit 3100164

Browse files
authored
Small documentation updates (#945)
1 parent 797c383 commit 3100164

File tree

4 files changed

+220
-154
lines changed

4 files changed

+220
-154
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ To keep the code simple, we only officially support the two latest releases of N
1111

1212
## Requirements
1313

14-
- NetBox 2.11+ or the two latest NetBox releases
14+
- The two latest NetBox releases
1515
- Python 3.8+
1616
- Python modules:
1717
- `pytz`
18-
- `pynetbox 5.0.4+`, `pynetbox 6.4.0+` if using 3.1 features
18+
- `pynetbox`
1919
- `packaging` if using Ansible < 2.10, as it's included in Ansible 2.10+
20-
- Ansible 2.10+
20+
- Ansible 2.12+
2121
- NetBox write-enabled token when using modules or read-only token for `nb_lookup/nb_inventory`
2222

2323
## Docs

plugins/lookup/nb_lookup.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,6 @@
100100
api_endpoint='http://localhost/',
101101
api_filter='role=management tag=Dell'),
102102
token='<redacted>') }}"
103-
104-
# Obtain a secret for R1-device
105-
tasks:
106-
- name: "Obtain secrets for R1-Device"
107-
debug:
108-
msg: "{{ query('netbox.netbox.nb_lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='<redacted>', key_file='~/.ssh/id_rsa') }}"
109-
110-
# Fetch bgp sessions for R1-device
111-
tasks:
112-
- name: "Obtain bgp sessions for R1-Device"
113-
debug:
114-
msg: "{{ query('netbox.netbox.nb_lookup', 'bgp_sessions',
115-
api_filter='device=R1-Device',
116-
api_endpoint='http://localhost/',
117-
token='<redacted>',
118-
plugin='mycustomstuff') }}"
119-
120-
msg: "{{ query('netbox.netbox.nb_lookup', 'secrets', api_filter='device=R1-Device', api_endpoint='http://localhost/', token='<redacted>', key_file='~/.ssh/id_rsa') }}"
121103
"""
122104

123105
RETURN = """

0 commit comments

Comments
 (0)