topo_render
Renders a .topo file to a PNG image for quick visual review, with optional scaling and port labels.
Instructions
可选:把拓扑画成辅助 PNG,不用开 eNSP 就能粗看布局。
PNG 不是 eNSP 原生界面,也不能证明 VirtualBox、镜像或设备能启动; 正常建图和验收流程不依赖它。
Args: path: .topo 文件路径。 out_path: 图片输出路径,省略则和 .topo 同名同目录,扩展名换成 .png。 scale: 缩放比例,设备多、连线挤的时候调大到 1.5 左右。 show_ports: 是否在连线两端标出接口名,默认标。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| scale | No | ||
| out_path | No | ||
| show_ports | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |