Sonic Switch 2G Shell — v1.1.3
CloudShell 2nd Generation Networking Shell for Celestica switches running SONiC OS, built on the Networking Shell Standard v5.0.2.
Added
- SNMP-based autoload — discovers Chassis and Port sub-resources, reading OS version, serial number, interface speed/duplex/MAC/MTU via standard MIBs (SNMPv2-MIB, IF-MIB, ENTITY-MIB, EtherLike-MIB, LLDP-MIB).
- Save / Restore — native SONiC configuration handling:
- Save:
Startup(/etc/sonic/config_db.json) orRunning(sonic-cfggen -d --print-data), with optional transfer to an sftp/scp destination. - Restore:
Append(config load -y) orOverride(replacesconfig_db.json+config reload -y), with automatic reconnect/retry (up to 20 × 15s) while the switch reloads.
- Save:
- Apply Connectivity Changes — VLAN and VXLAN orchestration: resolves CloudShell port names to SONiC interfaces, creates VLANs, sets Access (untagged) or Trunk (tagged) membership, and maps VXLAN VNI-to-VTEP when the VLAN's allocation type is VXLAN.
- Run Custom Command / Send Custom Config Command — arbitrary shell command execution over SSH, with automatic
sudoprefixing for the config variant. - Migrated driver to Python 3.
- Full README documenting data model, attributes, automation, and typical workflows.
Known limitations
- Load Firmware, Health Check, Shutdown, and Orchestration Save/Restore are present in the driver's command layout for standard compliance but are not yet implemented (no-op stubs).
- Autoload currently builds Chassis and Port sub-resources only — Module, Sub Module, Port Channel, and Power Port are not discovered.
- CLI connectivity is SSH-only — Telnet/Console connection types are not implemented despite being exposed by the standard.
Requirements
- CloudShell 2021.1 GA and above
- Python 3
- Networking Shell Standard 5.0.2
- Device OS: SONiC (Celestica switches)
Assets
Sonic Switch 2G.zip— shell packageSonic-Switch-2G-offline-dependencies.zip— offline Python dependencies (for offline CloudShell deployments)