Update sys.path reference in es24n_conf.py and all documentation to reflect the new folder name. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
24 lines
535 B
Python
24 lines
535 B
Python
"""
|
|
models.py — Shared data classes for ES24N IOM configuration.
|
|
Used by both the serial and network configuration workflows.
|
|
"""
|
|
|
|
from dataclasses import dataclass, field
|
|
|
|
|
|
@dataclass
|
|
class IOMConfig:
|
|
iom: str
|
|
dhcp: bool = True
|
|
ip: str = ""
|
|
gateway: str = ""
|
|
netmask: str = ""
|
|
|
|
|
|
@dataclass
|
|
class ShelfConfig:
|
|
device: str = ""
|
|
password: str = ""
|
|
iom1: IOMConfig = field(default_factory=lambda: IOMConfig("IOM1"))
|
|
iom2: IOMConfig = field(default_factory=lambda: IOMConfig("IOM2"))
|