Skip to content

Add NX-API JSON-RPC client and hack/nxapi helper#286

Open
felix-kaestner wants to merge 1 commit intomainfrom
nxapi
Open

Add NX-API JSON-RPC client and hack/nxapi helper#286
felix-kaestner wants to merge 1 commit intomainfrom
nxapi

Conversation

@felix-kaestner
Copy link
Copy Markdown
Contributor

Introduce NXAPIClient in internal/provider/cisco/nxos/nxapi.go, a thin HTTP client for the Cisco NX-OS NX-API JSON-RPC endpoint.

Add hack/nxapi, a minimal CLI that sends one or more NX-API commands to a device and pretty-prints the JSON results.

@felix-kaestner felix-kaestner requested a review from a team as a code owner April 8, 2026 13:50
@hardikdr hardikdr added the area/switch-automation Automation processes for network switch management and operations. label Apr 9, 2026
@hardikdr hardikdr added this to Roadmap Apr 9, 2026
@felix-kaestner felix-kaestner force-pushed the refactor/deviceutil branch 2 times, most recently from 897d764 to 21bd916 Compare April 13, 2026 07:58
Base automatically changed from refactor/deviceutil to main April 13, 2026 08:17
Introduce NXAPIClient in internal/provider/cisco/nxos/nxapi.go,
a thin HTTP client for the Cisco NX-OS NX-API JSON-RPC endpoint.

Add hack/nxapi, a minimal CLI that sends one or more NX-API
commands to a device and pretty-prints the JSON results.
@github-actions
Copy link
Copy Markdown

Merging this branch will increase overall coverage

Impacted Packages Coverage Δ 🤖
github.com/ironcore-dev/network-operator/hack/nxapi 0.00% (ø)
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos 11.96% (+1.75%) 👍

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/ironcore-dev/network-operator/hack/nxapi/main.go 0.00% (ø) 0 0 0
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/nxapi.go 71.43% (+71.43%) 70 (+70) 50 (+50) 20 (+20) 🌟
github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/provider.go 0.06% (-0.00%) 1639 (+8) 1 1638 (+8) 👎

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/ironcore-dev/network-operator/internal/provider/cisco/nxos/nxapi_test.go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/switch-automation Automation processes for network switch management and operations.

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants