Rename all 5 switches across all layers (DNS, DHCP, device hostname, conman console, ser2net, udev symlinks, repo files) to follow the <site>-<rack>-<function>-<count> convention: pfv-core-sw01 → pfv-r5-core-01 (rack 5 core) pfv-tor3-mgmt → pfv-r3-tor-mgmt-01 (rack 3 mgmt TOR) pfv-tor3-stor → pfv-r3-tor-stor-01 (rack 3 storage TOR) pfv-r2-tor-top → pfv-r2-tor-01 (rack 2 TOR) subodev-torsw01 → pfv-r6-mgmt-01 (rack 6 mgmt) Dead switch (pfv-r2-sw, port 2007) removed from mapping.txt. pfv-rrinfra-rtr unchanged (router, not a switch). Device hostnames changed via conman. Configs regenerated on pfv-tsys4. All .cmds files, validate-conman.sh, and AGENTS.md updated. [#369] 💘 Generated with Crush Assisted-by: Crush:glm-5.2
30 lines
1.6 KiB
Plaintext
30 lines
1.6 KiB
Plaintext
# console/mapping.txt — Source of Truth for console port assignments
|
|
#
|
|
# Format: <tcp_port>|<name>|<id_path_substring>|<baud>|<comment>
|
|
#
|
|
# Delimiter is | (pipe) because ID_PATH values contain colons.
|
|
#
|
|
# - tcp_port: TCP port ser2net listens on (also the conman console name suffix)
|
|
# - name: Device name (used for /dev/console/<name> symlink, conman console name)
|
|
# - id_path_substring: Stable USB physical path from `udevadm info -q all -n /dev/ttyUSBN | grep ID_PATH`
|
|
# These are STABLE across reboots as long as adapters aren't moved
|
|
# to different physical USB ports.
|
|
# - baud: Serial baud rate (9600n81 = 9600 8N1, no flow control)
|
|
# - comment: Free-form description
|
|
#
|
|
# To RE-MAP after physically moving an adapter:
|
|
# 1. Run: bash console/discover.sh (find the new ID_PATH for the device)
|
|
# 2. Update the id_path_substring in this file
|
|
# 3. Run: bash console/generate-config.sh && udevadm trigger && systemctl restart ser2net conmand
|
|
#
|
|
2001|pfv-r5-core-01|usb-0:1.5.4.4|9600n81|Dell PowerConnect 5448 (rack 5 core switch)
|
|
2002|pfv-r3-tor-mgmt-01|usb-0:1.6.3.1|9600n81|Rack 3 management TOR switch
|
|
2003|pfv-r3-tor-stor-01|usb-0:1.6.3.3.2|9600n81|Rack 3 storage TOR switch
|
|
2004|pfv-rrinfra-rtr|usb-0:1.6.3.3.1|9600n81|Cisco router (rrinfra)
|
|
2005|pfv-r2-tor-01|usb-0:1.6.3.3.3|9600n81|Rack 2 TOR switch
|
|
2006|pfv-r6-mgmt-01|usb-0:1.5.4.1|9600n81|Rack 6 management switch
|
|
# 2007|pfv-r2-sw|usb-0:1.6.3.2|9600n81|Rack 2 old Dell switch (dead, removed)
|
|
# Unassigned (no device detected):
|
|
# 2008|spare-1|usb-0:1.6.3.4|9600n81|Empty / spare
|
|
# 2009|spare-2|usb-0:1.6.3.3.4|9600n81|Empty / spare
|