get_router_list
Retrieve router hostnames from config.ini, filtered by tags, to use with other Junos tools without requiring device connection.
Instructions
List routers defined in config.ini, optionally filtered by tags.
Returns section names from config.ini, which represent the hostnames that can be used with other tools. No device connection required.
Args:
tags: Tag filter. Each list element is one tag group (comma-separated
tags AND together within a group); multiple list elements OR
together across groups. E.g. ["tokyo,core", "backup"] means
(tokyo AND core) OR backup. None/empty returns all.
config_path: Path to config.ini (empty string uses default search)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |