Skip to content

Sonic-Switch-2G 1.1.3

Latest

Choose a tag to compare

@LeeorV LeeorV released this 13 Aug 16:37

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) or Running (sonic-cfggen -d --print-data), with optional transfer to an sftp/scp destination.
    • Restore: Append (config load -y) or Override (replaces config_db.json + config reload -y), with automatic reconnect/retry (up to 20 × 15s) while the switch reloads.
  • 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 sudo prefixing 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 package
  • Sonic-Switch-2G-offline-dependencies.zip — offline Python dependencies (for offline CloudShell deployments)