copy_package
Copy a firmware package to a Junos device via SCP, verifying checksum and cleaning storage. Avoids unnecessary copies by checking current version and existing package.
Instructions
Copy firmware package to remote device via SCP with checksum verification.
Checks if copy is needed (already running target version, or package already present on device). Cleans up storage before copying.
Args: hostname: Target device hostname (must exist in config.ini) dry_run: If True (default), show what would be done without copying force: If True, skip version checks and force copy config_path: Path to config.ini (empty string uses default search)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | ||
| dry_run | No | ||
| hostname | Yes | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |