# Dos hosts unidos por dos caminos: r1-r2-r4 (preferido) y r1-r3-r4.
# Se usa para ver qué estado guarda cada nodo y qué sobrevive a una caída.
name: w02-fate
mgmt:
  network: redes-w02
  ipv4-subnet: 172.90.2.0/24
  ipv6-subnet: 3fff:172:90:2::/64
topology:
  defaults:
    kind: linux
    image: redes-router
  nodes:
    h1:
      binds: [build/static:/lab:ro]
      exec:
        - ip address add 10.2.1.10/24 dev eth1
        - ip route replace default via 10.2.1.1 dev eth1
    h2:
      binds: [build/static:/lab:ro]
      exec:
        - ip address add 10.2.4.10/24 dev eth1
        - ip route replace default via 10.2.4.1 dev eth1
    r1:
      binds: [r1/frr.conf:/etc/frr/frr.conf:ro]
    r2:
      binds: [r2/frr.conf:/etc/frr/frr.conf:ro]
    r3:
      binds: [r3/frr.conf:/etc/frr/frr.conf:ro]
    r4:
      binds: [r4/frr.conf:/etc/frr/frr.conf:ro]
  # MTU de 1500 bytes, como en Ethernet; Containerlab usa 9500 si no se indica.
  links:
    - {endpoints: ["h1:eth1", "r1:eth1"], mtu: 1500}
    - {endpoints: ["r1:eth2", "r2:eth1"], mtu: 1500}
    - {endpoints: ["r1:eth3", "r3:eth1"], mtu: 1500}
    - {endpoints: ["r2:eth2", "r4:eth1"], mtu: 1500}
    - {endpoints: ["r3:eth2", "r4:eth2"], mtu: 1500}
    - {endpoints: ["r4:eth3", "h2:eth1"], mtu: 1500}
