visualize-ovn-topology

visualize-ovn-topology is a command for Claude Code from wangke19/gemini-ai-helpers. It costs 10 tokens per session (1,073 once invoked), scanned A, original, Apache-2.0.

A command that reads a running OVN-Kubernetes cluster and generates a Mermaid diagram of its network topology. The diagram covers logical switches, routers, ports, addresses, pods, external connections, and component placement.

In plain words
What is it for?
Use it to view pod and node connectivity, understand OVN network components, and compare centralized and interconnect layouts.
Why use it?
It turns detailed networking data into a visual map that is easier to inspect when troubleshooting or documenting a cluster.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to view pod and node connectivity, understand OVN network components, and compare centralized and interconnect layouts.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/wangke19/gemini-ai-helpers/visualize-ovn-topology
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/wangke19/gemini-ai-helpers

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for visualize-ovn-topology

README.md
[![agentmods](https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/visualize-ovn-topology/github.svg)](https://agentmods.dev/commands/wangke19/gemini-ai-helpers/visualize-ovn-topology)
Your own site
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/visualize-ovn-topology"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/visualize-ovn-topology/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for visualize-ovn-topology

Your own site · 80×15
<a href="https://agentmods.dev/commands/wangke19/gemini-ai-helpers/visualize-ovn-topology"><img src="https://agentmods.dev/badge/commands/wangke19/gemini-ai-helpers/visualize-ovn-topology.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,073 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00010 $0.01073
Opus 5 $0.00005 $0.00536
Sonnet 5 $0.00002 $0.00215
Haiku 4.5 $0.00001 $0.00107

Measured 7d ago against content hash 5b5a311cb010, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

visualize-ovn-topology scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

extensions/openshift/commands/visualize-ovn-topology.md · 122 lines

How it starts

The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

openshift:visualize-ovn-topology

Synopsis

/openshift:visualize-ovn-topology

Description

The openshift:visualize-ovn-topology command generates a comprehensive Mermaid diagram of the OVN-Kubernetes network topology for a running cluster. The diagram shows:

  • Logical switches and routers
  • Switch and router ports with MAC/IP addresses
  • Pod connectivity
  • External network connections
  • Per-node component placement (interconnect mode) or centralized components (default mode)

The command automatically detects the cluster architecture (interconnect vs default mode) and creates an accurate topology diagram based on real data from the OVN databases.

Implementation

This command invokes the generating-ovn-topology skill which implements a data-driven architecture discovery approach:

  1. Cluster Detection: Automatically finds and connects to an OVN-Kubernetes cluster
  2. Permission Check: Verifies Kubernetes access level and warns if write permissions detected
    • If you have cluster admin permissions, you'll be asked to confirm before proceeding
    • The command only performs read-only operations regardless of your permission level
    • This check ensures informed consent when using admin credentials
  3. Architecture Discovery: Analyzes UUID patterns across node databases to determine component placement (per-node vs cluster-wide)
  4. Data Collection: Queries OVN northbound databases for topology information
  5. Diagram Generation: Creates a Mermaid graph with proper component placement
  6. Output: Saves diagram to ovn-topology-diagram.md (or timestamped/custom path if file exists)

Key Features:

  • Data-driven: Never generates synthetic data - always queries real cluster
  • Architecture-aware: Correctly handles both interconnect and default deployment modes
  • Complete topology: Shows all logical switches, routers, and ports
  • Visual clarity: Uses color-coded components and node subgraphs for organization

Read the full file on GitHub · 122 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 122 lines · 10 tokens per session scan A 5b5a311cb010

Subscribe to this mod's changes

visualize-ovn-topology is a command published in the GitHub repository wangke19/gemini-ai-helpers (2 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 10 tokens to every session and 1,073 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.