mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 03:10:46 +08:00
Open WebCRT New Session setup for LLDP placeholders.
Claim the existing placeholder in place and promote source to webcrt instead of prompting for password-only auth. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5821d08d63
commit
71c5193ecd
10 changed files with 243 additions and 18 deletions
|
|
@ -75,6 +75,8 @@ class WebcrtQuickConnectBody(BaseModel):
|
|||
username: str = ""
|
||||
password: str = ""
|
||||
save_password: bool = False
|
||||
# When set, claim/update an existing LLDP (or incomplete) ManagedNE → source=webcrt.
|
||||
ne_id: str | None = None
|
||||
cols: int = Field(default=80, ge=20, le=500)
|
||||
rows: int = Field(default=24, ge=5, le=200)
|
||||
encoding: str = Field(default="utf-8")
|
||||
|
|
@ -190,6 +192,7 @@ def api_quick_connect(
|
|||
username=body.username,
|
||||
password=body.password,
|
||||
save_password=save_password,
|
||||
ne_id=str(body.ne_id or "").strip() or None,
|
||||
)
|
||||
# Pass SSH credentials as one-shot overrides (covers unsaved password + reused inventory).
|
||||
pwd_override: str | None = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue