list_models
List eNSP-supported device models and their interface names before building a topology. Filter by category or model, or verify a .topo file's interface layout against the built-in table.
Instructions
列出 eNSP 支持的设备型号,以及每种型号的接口清单。
搭拓扑前先调这个,就知道有哪些型号可选、每个型号有几个口、口叫什么名字。 连线时 fromPort / toPort 填的就是这里的接口名。
Args: category: 只看某一类,可选 AR(路由器)、LSW(交换机)、WLAN(无线)、 FW(防火墙)、CLIENT(终端)、OTHER(其它)。留空看全部。 model: 只看某一个型号,例如 "S5700"。填了会连完整接口列表一起返回。 topo_path: 可选。给一份现成 .topo,会顺带核对内置型号表和这份文件 里实际写出的接口布局是否一致,用于确认 eNSP 版本差异。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| category | No | ||
| topo_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |