Shumoku

Basic Diagrams

Basics of nodes, links, and labels

Learn how to define nodes (devices) and links (connections), the fundamental elements of network diagrams.

Nodes

Nodes represent network devices such as routers, switches, and servers.

nodes:
  - id: router-1          # Required: unique identifier
    label: "Core Router"  # Required: display name
    type: router          # Device type

Device Types

typeAliasesDescription
router-Router
l3-switch-L3 Switch
l2-switchswitchL2 Switch
firewall-Firewall
load-balancerlbLoad Balancer
server-Server
access-pointapAccess Point
cpeonu, ontCPE (ONU / ONT)
console-serverterminal-serverConsole Server
cloud-Cloud
internet-Internet
vpn-VPN
databasedbDatabase
generic-Generic

Multi-line Labels

nodes:
  - id: router-1
    label:
      - "<b>RT-01</b>"      # Bold
      - "192.168.1.1"       # IP address
      - "---"               # Separator line
      - "Tokyo DC"          # Additional info

Node Shapes

nodes:
  - id: db-1
    label: "Database"
    type: database
    shape: cylinder    # Specify shape
shapeAliasesDescription
roundedroundRounded rectangle (default)
rectrectangleRectangle
circle-Circle
diamondrhombusDiamond
hexagon-Hexagon
cylinderdatabaseCylinder
stadiumpillStadium shape
trapezoid-Trapezoid

Links represent connections between devices.

links:
  # Simple format
  - from: router-1
    to: switch-1

  # With port specification
  - from:
      node: router-1
      port: eth0
    to:
      node: switch-1
      port: ge-0/0/0

Specify the Ethernet standard of the link with standard:. The faster the standard, the thicker the line is drawn (the legend, when enabled, shows a line-thickness sample for each standard used).

links:
  - from: router-1
    to: switch-1
    standard: 10GBASE-T

Common values:

standardSpeed
1000BASE-T1G
10GBASE-T, 10GBASE-SR10G
25GBASE-SR25G
40GBASE-SR440G
100GBASE-SR4, 100GBASE-LR4100G

VLAN

links:
  - from: switch-1
    to: switch-2
    vlan: 100           # Single VLAN

  - from: switch-1
    to: switch-3
    vlan: [10, 20, 30]  # Trunk (multiple VLANs)
links:
  - from: router-1
    to: router-2
    type: dashed        # Dashed line (for VPN, etc.)
typeAliasesDescription
solid-Solid line (default)
dasheddottedDashed line
thick-Thick line
double-Double line
invisiblehiddenHidden

Arrows

links:
  - from: client
    to: server
    arrow: forward      # Forward arrow
arrowAliasesDescription
none-No arrow (default)
forward->Forward
back<-Backward
both<->Bidirectional

Redundancy Types

Express HA pairs and stack configurations.

links:
  - from: router-1
    to: router-2
    redundancy: ha      # HA pair
redundancyAliasesDescription
havrrp, hsrp, glbp, keepaliveHA pair
vcvirtual-chassisVirtual Chassis
vss-VSS
vpc-vPC
mlagmclagMLAG
stackstacking, irfStack

Complete Example

name: "Office Network"

nodes:
  - id: inet
    label: "Internet"
    type: internet

  - id: router
    label:
      - "<b>Edge Router</b>"
      - "203.0.113.1"
    type: router

  - id: fw
    label: "Firewall"
    type: firewall

  - id: sw-core
    label: "Core Switch"
    type: l3-switch

  - id: srv-web
    label: "Web Server"
    type: server

  - id: srv-db
    label: "Database"
    type: database
    shape: cylinder

links:
  - from: inet
    to: router

  - from: router
    to: fw
    standard: 1000BASE-T

  - from: fw
    to: sw-core
    standard: 10GBASE-T

  - from: sw-core
    to: srv-web
    standard: 1000BASE-T
    vlan: 100

  - from: sw-core
    to: srv-db
    standard: 10GBASE-T
    vlan: 200

Next Steps

On this page