Repository navigation
Add lantronix_itmgos show sysconfig - #2374
Conversation
|
There are some lines that are pretty loose so they can match many lines. Maybe we should have more specific regexes? |
Replace the generic key: value rules in the Hardware and Network states with the labels seen in the SLC9000, SLC8000 and EMG samples, so an unrecognized line now reaches the Error rule.
|
Thanks for the separator fix. Agreed on the loose lines. Replaced both with explicit labels from the SLC9000, SLC8000 and EMG samples, so an unrecognized line now hits |
|
@ryanhoggpm Thanks for your contribution, and adding in our first Lantronix template! A few notes:
|
- Add EC_VERSION, FLASH_INFO, MAIN_BOARD_REVISION, TPM_FIRMWARE_VERSION, SWITCH_MAC_ADDRESS and CELL_MAC_ADDRESS. - MAC_ADDRESS is now a List of every EthN HW Address. - IO_MODULES and IO_MODULE_REVISIONS are Lists, one entry per installed slot; empty slots, N/A and unknown are skipped. - Split ETHERNET_SWITCH into status and ETHERNET_SWITCH_PORTS, and POWER_SUPPLY into type and POWER_SUPPLY_COUNT. - Add an SLC9000 9.8.0.0 sample with a TPM installed.
|
@matt852 Thanks for the review. Pushed 362824e, which covers each point:
I also accepted the |
The line isn't anchored on EoL so the trailing \s gives little if any benefit.
|
@matt852 Friendly ping on this one. 362824e covers each point from your Nov 3 review: TPM test data (new SLC9000 9.8.0.0 sample with a TPM installed), the added inventory fields, and the column and split questions. Happy to rework anything that still doesn't fit. Thanks again for taking the first Lantronix template. |
There was a problem hiding this comment.
@ryanhoggpm Looking great and like all feedback was addressed. Approved, with one suggested spacing fix for test file _3.raw
ISSUE TYPE
COMPONENT
lantronix_itmgos_show_sysconfig.textfsm, oslantronix_itmgos, commandshow sysconfigSUMMARY
Adds the first template for Lantronix IT Management Gateway OS, the flat CLI shared by the SLC 9000 and SLC 8000 console managers, the EMG 7500/8500 edge gateways and the SLB. The platform name matches the Netmiko driver (
lantronix_itmgos, in Netmikodevelop). This PR also addslantronix_itmgostoOS_CHOICESintests/test_index_order.py.show sysconfigprints the whole system configuration. The template returns one record with the identity and hardware fields people inventory on (model, firmware version, serial, MAC, memory and flash, I/O modules, modem and switch presence, secure boot, TPM) plus hostname, domain and default gateway. It stops parsing after the hostname section; services, users and per-port settings are left for command-specific templates.Design notes:
Bootloader Versionis left on SLC 9000 and right on SLC 8000). Each field rule matches either position and usesContinue.key: valueline before the^. -> Errorrule.CELLULAR_MODEMandINTERNAL_MODEMare separate because they are different hardware.Tests: three real captures, scrubbed (documentation-range MACs and addresses, synthetic serials): SLC9016-16U-16E on 9.7.0.0R21, SLC8032 on 9.7.0.6R4, EMG7500 on 9.7.0.0R3.
pytest testspasses locally and yamllint is clean.