Skip to content

Commit 09bb12f

Browse files
authored
Merge branch 'main' into dependabot/github_actions/actions/upload-artifact-7
2 parents 9713557 + eb39bb4 commit 09bb12f

17 files changed

Lines changed: 494 additions & 422 deletions

File tree

.github/workflows/bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
cat bandit-output.sarif
3333
3434
- name: Upload Bandit scan results to GitHub Security tab
35-
uses: github/codeql-action/upload-sarif@v3
35+
uses: github/codeql-action/upload-sarif@v4
3636
with:
3737
sarif_file: "bandit-output.sarif"
3838

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Run ansible-lint
3737
run: ansible-lint
3838
- name: Upload SARIF file
39-
uses: github/codeql-action/upload-sarif@v3
39+
uses: github/codeql-action/upload-sarif@v4
4040
with:
4141
# Path to SARIF file relative to the root of the repository
4242
sarif_file: ansible_lint_result.sarif

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ jobs:
6969
# Upload the results to GitHub's code scanning dashboard (optional).
7070
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
7171
- name: "Upload to code-scanning"
72-
uses: github/codeql-action/upload-sarif@v3
72+
uses: github/codeql-action/upload-sarif@v4
7373
with:
7474
sarif_file: results.sarif

.github/workflows/trivy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/checkout@v5
1414

1515
- name: Run Trivy vulnerability scanner in repo mode
16-
uses: aquasecurity/trivy-action@0.33.1
16+
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # v0.35.0
1717
with:
1818
scan-type: "fs"
1919
ignore-unfixed: true
@@ -23,7 +23,7 @@ jobs:
2323
severity: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL"
2424

2525
- name: Upload Trivy scan results to GitHub Security tab
26-
uses: github/codeql-action/upload-sarif@v3
26+
uses: github/codeql-action/upload-sarif@v4
2727
if: always()
2828
with:
2929
sarif_file: "trivy-results.sarif"

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.14.0] - 2026-03-05
11+
12+
# Added
13+
14+
- Supporting routerdynamicrouting_info in netscaler.adc collections
15+
1016
## [2.13.0] - 2025-12-14
1117

1218
# Fixed
@@ -230,7 +236,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
230236

231237
- Initial Release
232238

233-
[unreleased]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.13.0...HEAD
239+
[unreleased]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.14.0...HEAD
240+
[2.14.0]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.13.0...2.14.0
234241
[2.13.0]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.12.0...2.13.0
235242
[2.12.0]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.11.0...2.12.0
236243
[2.11.0]: https://github.com/netscaler/ansible-collection-netscaleradc/compare/2.10.1...2.11.0

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ build:
4242
ansible-galaxy collection build --force
4343

4444
galaxy_importer: build
45-
python3 -m galaxy_importer.main netscaler-adc-2.13.0.tar.gz
45+
python3 -m galaxy_importer.main netscaler-adc-2.14.0.tar.gz
4646

4747
# build_docs:
4848
# rm -rf _built_docs
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
- name: Sample routerdynamicrouting_info playbook
3+
hosts: demo_netscalers
4+
gather_facts: false
5+
tasks:
6+
- name: Get BGP routing summary
7+
delegate_to: localhost
8+
netscaler.adc.routerdynamicrouting_info:
9+
nsip: "{{ nsip }}"
10+
nitro_user: "{{ nitro_user }}"
11+
nitro_pass: "{{ nitro_pass }}"
12+
nitro_protocol: "{{ nitro_protocol }}"
13+
validate_certs: false
14+
commandstring: "show ip bgp summary"
15+
register: bgp_summary
16+
17+
- name: Display BGP summary
18+
ansible.builtin.debug:
19+
var: bgp_summary.info
20+
21+
- name: Get IP routing table
22+
delegate_to: localhost
23+
netscaler.adc.routerdynamicrouting_info:
24+
nsip: "{{ nsip }}"
25+
nitro_user: "{{ nitro_user }}"
26+
nitro_pass: "{{ nitro_pass }}"
27+
nitro_protocol: "{{ nitro_protocol }}"
28+
validate_certs: false
29+
commandstring: "sh ip route"
30+
register: ip_route
31+
32+
- name: Display routing table
33+
ansible.builtin.debug:
34+
var: ip_route.info
35+
36+
- name: Get OSPF neighbor information
37+
delegate_to: localhost
38+
netscaler.adc.routerdynamicrouting_info:
39+
nsip: "{{ nsip }}"
40+
nitro_user: "{{ nitro_user }}"
41+
nitro_pass: "{{ nitro_pass }}"
42+
nitro_protocol: "{{ nitro_protocol }}"
43+
validate_certs: false
44+
commandstring: "show ip ospf neighbor"
45+
register: ospf_neighbors
46+
47+
- name: Display OSPF neighbors
48+
ansible.builtin.debug:
49+
var: ospf_neighbors.info

galaxy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace: netscaler
77
# The name of the collection. Has the same character restrictions as 'namespace'
88
name: adc
99
# The version of the collection. Must be compatible with semantic versioning
10-
version: 2.13.0
10+
version: 2.14.0
1111
# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
1212
readme: README.md
1313
# A list of the collection's content authors. Can be just the name or in the format 'Full Name <email> (url)

plugins/module_utils/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,10 @@ def format_value(val):
137137
return str(val)
138138

139139
args_val = ",".join(
140-
["%s:%s" % (k, quote(codecs.encode(format_value(args[k])), safe="")) for k in args]
140+
[
141+
"%s:%s" % (k, quote(codecs.encode(format_value(args[k])), safe=""))
142+
for k in args
143+
]
141144
)
142145
args_val = ("args=%s" % args_val) if args_val != "" else ""
143146

plugins/module_utils/module_executor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,10 @@ def filter_values(value):
325325

326326
log("DEBUG: self.module.params: %s" % self.module.params)
327327
for k, v in self.module.params.items():
328-
if not k.endswith("_binding") and k in NITRO_RESOURCE_MAP[self.resource_name]["readwrite_arguments"]:
328+
if (
329+
not k.endswith("_binding")
330+
and k in NITRO_RESOURCE_MAP[self.resource_name]["readwrite_arguments"]
331+
):
329332
cleaned_value = filter_values(v)
330333
if cleaned_value is not None:
331334
self.resource_module_params[k] = cleaned_value

0 commit comments

Comments
 (0)