# TP-Link SG3218XP-M2 V1
# Converted from the punchdown catalog on 2026-11-10. Source of the data: netbox. Image link found by web research on 2026-11-11.
network: 1
imports:
  - ../../defaults/types.network.yaml
models:
  tp-link/sg3218xp-m2-v1:
    name: SG3218XP-M2 V1
    vendor: TP-Link
    role: switch
    aliases: [ SG3218XP-M2-V1 ]
    mount: 19in
    size: { units: 1 }
    weight: 3.1
    power: { max: 300, inlets: 1 }
    x-assumed: [ power ports are on the rear ]
    ports:
      two-gigabitethernet-1-0-1..8: { type: 2.5gbase-t, poe: at, native: "two-gigabitEthernet 1/0/{n}" }
      two-gigabitethernet-1-0-9..16: { type: 2.5gbase-t, native: "two-gigabitEthernet 1/0/{n}" }
      ten-gigabitethernet-1-0-17..18: { type: 10gbase-x-sfpp, native: "ten-gigabitEthernet 1/0/{n}" }
      serial-console: { type: console-rj-45, role: console, native: Serial Console }
      usb-serial-console: { type: console-usb-micro-b, role: console, native: USB Serial Console }
      ps1: { type: iec-60320-c14, role: power, side: rear, native: PS1 }
    x-part-number: "0132600339"
    x-airflow: left-to-right
    x-full-depth: false
    faces:
      front:
        finish: black
        background: "#414141"
        padding: { x: 8, y: 3 }
        layout:
          row:
            gap: 0
            items:
              - column:
                  gap: 1.5
                  align: start
                  margin: { left: 3.1, right: 9.4 }
                  items:
                    - logo: { text: tp-link | Omada, width: 49, height: 9 }
                    - label: { id: model, text: SG3218XP-M2, width: 25, height: 5 }
                    - label: { text: 16-Port 2.5G and 2-Port 10GE SFP+, width: 46, height: 3 }
                    - label: { text: L2+ Managed Switch with 8-Port PoE+, width: 48, height: 3 }
              # System lights, each under its name.
              - column:
                  width: 8
                  gap: 0.92
                  margin: { right: 2.5 }
                  items:
                    - indicator: { id: pwr, width: 2.6, height: 2.6, caption: { text: PWR, side: above, gap: 0.6, text-style: { size: 1.8 } } }
                    - indicator: { id: sys, width: 2.6, height: 2.6, caption: { text: SYS, side: above, gap: 0.6, text-style: { size: 1.8 } } }
                    - indicator: { id: poe-max, width: 2.6, height: 2.6, caption: { text: PoE Max, side: above, gap: 0.6, text-style: { size: 1.8 } } }
                    - indicator: { id: fan, width: 2.6, height: 2.6, caption: { text: FAN, side: above, gap: 0.6, text-style: { size: 1.8 } } }
              # One light per port: odd ports on the top row, even below, then SFP+ 17 and 18.
              - column:
                  gap: 1
                  margin: { right: 4 }
                  items:
                    - label: { text: "Speed or PoE        Speed        SFP+", width: 44, height: 2.4 }
                    - grid: { columns: 9, rows: 2, gap: 2.6, items: [ { indicator: { id: led-1, width: 2.6, height: 2.6 } }, { indicator: { id: led-3, width: 2.6, height: 2.6 } }, { indicator: { id: led-5, width: 2.6, height: 2.6 } }, { indicator: { id: led-7, width: 2.6, height: 2.6 } }, { indicator: { id: led-9, width: 2.6, height: 2.6 } }, { indicator: { id: led-11, width: 2.6, height: 2.6 } }, { indicator: { id: led-13, width: 2.6, height: 2.6 } }, { indicator: { id: led-15, width: 2.6, height: 2.6 } }, { indicator: { id: led-17, width: 2.6, height: 2.6 } }, { indicator: { id: led-2, width: 2.6, height: 2.6 } }, { indicator: { id: led-4, width: 2.6, height: 2.6 } }, { indicator: { id: led-6, width: 2.6, height: 2.6 } }, { indicator: { id: led-8, width: 2.6, height: 2.6 } }, { indicator: { id: led-10, width: 2.6, height: 2.6 } }, { indicator: { id: led-12, width: 2.6, height: 2.6 } }, { indicator: { id: led-14, width: 2.6, height: 2.6 } }, { indicator: { id: led-16, width: 2.6, height: 2.6 } }, { indicator: { id: led-18, width: 2.6, height: 2.6 } } ] }
              - column: { gap: 3.8, margin: { right: 6.5 }, items: [ { label: { text: Speed, width: 8, height: 2.4 } }, { label: { text: PoE, width: 8, height: 2.4 } } ] }
              - button: { id: reset, width: 3.6, height: 3.6, margin: { right: 1.8 } }
              - column:
                  gap: 1
                  align: start
                  margin: { right: 2.4 }
                  items:
                    - label: { text: "Speed: 2.5Gbps · 10M/100M/1Gbps · Activity", width: 31, height: 2.4 }
                    - label: { text: "PoE: Delivering · Over Budget · Fault", width: 31, height: 2.4 }
                    - label: { text: "SFP+: 10Gbps · 1Gbps · Activity", width: 31, height: 2.4 }
              - serial-console: { label-position: none, margin: { right: 2, bottom: 0.39 }, caption: { text: Console(RJ-45), gap: 0.6, text-style: { size: 1.84 } } }
              - usb-serial-console: { label-position: none, margin: { right: 7.4, bottom: 0.66 }, caption: { text: Console(USB), gap: 0.6, text-style: { size: 1.62 } } }
              # 1 above 2, in two blocks of eight.
              - grid: { ports: two-gigabitethernet-1-0-1..16, rows: 2, order: odd-top, groups: 4, gap: 0, group-gap: 9.7, margin: { right: 22.9 } }
              - ten-gigabitethernet-1-0-17: { margin: { right: 10.8 } }
              - ten-gigabitethernet-1-0-18
              - grow
      rear:
        background: "#444444"
        padding: { x: 8, y: 3 }
        layout:
          row:
            gap: 0
            items:
              - screw-black: { width: 5, height: 5, margin: { left: 2, right: 48 } }
              - panel: { id: security-slot, width: 4.4, height: 8.6, color: "#2a2a2a", margin: { right: 259 } }
              - screw: { id: ground, width: 11.4, height: 11.4, margin: { right: 45.5 } }
              - ps1: { label-position: none, margin: { right: 0.4, bottom: 0.87 }, caption: { text: "100-240V ~ 50/60Hz 8.0A", gap: 3, text-style: { size: 2.27 } } }
              - screw-black: { width: 5, height: 5 }
              - grow
    source:
      url: https://www.omadanetworks.com/us/business-networking/omada-switch-access-pro/sg3218xp-m2/
      checked: 2026-11-11
      x-from: netbox
      x-faces: measured by hand from the NetBox photos on 2026-11-11 (docs/face-examples.md)
      x-netbox: tp-link-sg3218xp-m2-v1
      x-netbox-elevation: [ front, rear ]
      x-reference-image: https://static.tp-link.com/upload/image-line/SG3218XP-M2_UN__2.0_Overview_01_large_20260421075521b.jpg
      x-researched: 2026-11-11
