Support bastion hop hosts as FQDN and pasted OpenSSH destinations.

Use placeholder examples (example.com / RFC5737) in docs and tests.
EOF

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-11 17:32:03 +08:00
parent 35e7bb4667
commit b4514c13aa
12 changed files with 414 additions and 36 deletions

View file

@ -17,6 +17,9 @@ from .ne_hop_templates import (
default_hop_command_template,
default_huawei_hop_template,
default_zte_hop_template,
expand_bastion_hop_fields,
normalize_hop_host,
parse_bastion_ssh_destination,
render_hop_command,
resolve_bastion_ssh_username,
)
@ -60,9 +63,12 @@ __all__ = [
"default_hop_command_template",
"default_huawei_hop_template",
"default_zte_hop_template",
"expand_bastion_hop_fields",
"extract_cli_prompt_marker",
"get_cli_hop_guard",
"normalize_hop_host",
"open_netmiko_connection",
"parse_bastion_ssh_destination",
"render_hop_command",
"resolve_bastion_ssh_username",
"should_close_cli_hop_session",