Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions crude_engine/schemas/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,15 @@ methods:
set_watchdog:
type: upsert
attributes:
# 1.17 get_config is SSH execute (show running-config). No overlay in this ticket.
running: {}
# #324: running wired to SSH "show running-config script" (raw text,
# parser: none). SSH-only; MOPS/SNMP stay empty.
running:
wire: hm2configrunning
source: config
# startup stays unwired, deliberately: "show startup-config" is rejected as
# an invalid command on the tested firmware, and the saved (nvm) config can
# only be read by first loading it into running (a mutating copy), which a
# read-only getter must not do. Not a wiring gap; there is nothing to wire.
startup: {}
nvm:
wire: hm2fmnvmstate
Expand Down
10 changes: 10 additions & 0 deletions crude_engine/wire/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: "2.9.0"
feature: config
description: "Config management — running-config text blob. SSH-only: no SNMP/MOPS equivalent exists for a raw config-text dump (#324)."

attributes:
# Synthetic identifier — no real HM2 MIB object backs this (there is no
# SNMP/MOPS way to fetch config as text). Named to match house hm2*
# convention for readability, not because it's a real OID.
hm2configrunning:
type: string
20 changes: 20 additions & 0 deletions crude_engine/wire/ssh/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: "2.9.0"
feature: config-ssh
description: "SSH CLI execute-blob source for get_config.running (#324)"

attributes:
# Tested live over SSH: bare "show running-config" is rejected
# ("Incomplete command"); "script" is the working form. parser: none is
# REQUIRED here, not optional: SSH.yaml's protocol-level default parser is
# dot_keys, and omitting this key returned {} against the raw text.
#
# Considered "show running-config xml" for shape consistency with a future
# MOPS get_config (an XML config file). On the tested firmware "xml" is
# rejected as an invalid command, although the CLI reference lists it.
# "script all" hung the SSH session (prompt-pattern timeout) and was not
# pursued. No XML-shape source is reachable via SSH on the tested devices;
# a future MOPS get_config needs its own shape-reconciliation pass.
hm2configrunning:
sources:
ssh:
read: {command: "show running-config script", parser: none}
Loading