Skip to content

Instantly share code, notes, and snippets.

@nights99
Created November 5, 2021 20:54
Show Gist options
  • Save nights99/f5effcb415233d8e9d86c4ff5ed84ce7 to your computer and use it in GitHub Desktop.
Save nights99/f5effcb415233d8e9d86c4ff5ed84ce7 to your computer and use it in GitHub Desktop.
networks:
hosta-gi0-hostb-gi0:
driver_opts:
com.docker.network.container_iface_prefix: xr-1
internal: true
name: hosta-gi0-hostb-gi0
hosta-gi1-hostb-gi1:
driver_opts:
com.docker.network.container_iface_prefix: xr-0
internal: true
name: hosta-gi1-hostb-gi1
hosta-gi2:
driver_opts:
com.docker.network.container_iface_prefix: xr-8
internal: true
name: hosta-gi2
hosta-gi5-hostb-gi3:
driver_opts:
com.docker.network.container_iface_prefix: xr-2
internal: true
name: hosta-gi5-hostb-gi3
hosta-gi6:
driver_opts:
com.docker.network.container_iface_prefix: xr-9
internal: true
name: hosta-gi6
hosta-gi7-hostp-gi0:
driver_opts:
com.docker.network.container_iface_prefix: xr-3
internal: true
name: hosta-gi7-hostp-gi0
hosta-gi8:
driver_opts:
com.docker.network.container_iface_prefix: xr-10
internal: true
name: hosta-gi8
hosta-linux:
driver_opts:
com.docker.network.container_iface_prefix: xr-5
hosta-mg0:
driver_opts:
com.docker.network.container_iface_prefix: xr-7
internal: true
name: hosta-mg0
ipam:
config:
- subnet: 172.41.0.0/24
hostb-gi2:
driver_opts:
com.docker.network.container_iface_prefix: xr-12
internal: true
name: hostb-gi2
hostb-gi4:
driver_opts:
com.docker.network.container_iface_prefix: xr-13
internal: true
name: hostb-gi4
hostb-gi7-hostp-gi1:
driver_opts:
com.docker.network.container_iface_prefix: xr-4
internal: true
name: hostb-gi7-hostp-gi1
hostb-linux:
driver_opts:
com.docker.network.container_iface_prefix: xr-6
hostb-mg0:
driver_opts:
com.docker.network.container_iface_prefix: xr-11
internal: true
name: hostb-mg0
hostp-mg0:
driver_opts:
com.docker.network.container_iface_prefix: xr-14
internal: true
name: hostp-mg0
services:
hosta:
cap_add:
- CHOWN
- DAC_OVERRIDE
- FSETID
- FOWNER
- MKNOD
- NET_RAW
- SETGID
- SETUID
- SETFCAP
- SETPCAP
- NET_BIND_SERVICE
- SYS_CHROOT
- KILL
- AUDIT_WRITE
- SYS_NICE
- SYS_ADMIN
- SYS_RESOURCE
- NET_ADMIN
- SYS_PTRACE
cap_drop:
- all
container_name: hosta
devices:
- /dev/fuse
- /dev/net/tun
environment:
XR_CHECKSUM_OFFLOAD_COUNTERACT: Gi0/0/0/9
XR_EVERY_BOOT_CONFIG: /startup.cfg
XR_INTERFACES: Mg0/RP0/CPU0/0:xr-70,Gi0/0/0/0:xr-10,Gi0/0/0/1:xr-00,Gi0/0/0/2:xr-80,Gi0/0/0/5:xr-20,Gi0/0/0/6:xr-90,Gi0/0/0/7:xr-30,Gi0/0/0/8:xr-100,Gi0/0/0/9:xr-50
image: xrd/jnightin/crash-initrd/dev/l2vpn_pi_dataplane_srv6
networks:
hosta-gi0-hostb-gi0: null
hosta-gi1-hostb-gi1: null
hosta-gi2: null
hosta-gi5-hostb-gi3: null
hosta-gi6: null
hosta-gi7-hostp-gi0: null
hosta-gi8: null
hosta-linux: null
hosta-mg0: null
ports:
- '2022:22'
security_opt:
- apparmor:unconfined
stdin_open: true
tmpfs:
- /run
tty: true
volumes:
- source: ./xrd-l2vpn/hosta.cfg
target: /startup.cfg
type: bind
- hosta:/xr-storage/
- source: /nobackup/jnightin/crash-initrd
target: /nobackup/jnightin/crash-initrd
type: bind
- read_only: true
source: /sys/fs/cgroup
target: /sys/fs/cgroup
type: bind
hostb:
cap_add:
- CHOWN
- DAC_OVERRIDE
- FSETID
- FOWNER
- MKNOD
- NET_RAW
- SETGID
- SETUID
- SETFCAP
- SETPCAP
- NET_BIND_SERVICE
- SYS_CHROOT
- KILL
- AUDIT_WRITE
- SYS_NICE
- SYS_ADMIN
- SYS_RESOURCE
- NET_ADMIN
- SYS_PTRACE
cap_drop:
- all
container_name: hostb
devices:
- /dev/fuse
- /dev/net/tun
environment:
XR_CHECKSUM_OFFLOAD_COUNTERACT: Gi0/0/0/9
XR_EVERY_BOOT_CONFIG: /startup.cfg
XR_INTERFACES: Mg0/RP0/CPU0/0:xr-110,Gi0/0/0/0:xr-10,Gi0/0/0/1:xr-00,Gi0/0/0/2:xr-120,Gi0/0/0/3:xr-20,Gi0/0/0/4:xr-130,Gi0/0/0/7:xr-40,Gi0/0/0/9:xr-60
image: xrd/jnightin/crash-initrd/dev/l2vpn_pi_dataplane_srv6
networks:
hosta-gi0-hostb-gi0: null
hosta-gi1-hostb-gi1: null
hosta-gi5-hostb-gi3: null
hostb-gi2: null
hostb-gi4: null
hostb-gi7-hostp-gi1: null
hostb-linux: null
hostb-mg0: null
security_opt:
- apparmor:unconfined
stdin_open: true
tmpfs:
- /run
tty: true
volumes:
- source: ./xrd-l2vpn/hostb.cfg
target: /startup.cfg
type: bind
- hostb:/xr-storage/
- source: /nobackup/jnightin/crash-initrd
target: /nobackup/jnightin/crash-initrd
type: bind
- read_only: true
source: /sys/fs/cgroup
target: /sys/fs/cgroup
type: bind
hostp:
cap_add:
- CHOWN
- DAC_OVERRIDE
- FSETID
- FOWNER
- MKNOD
- NET_RAW
- SETGID
- SETUID
- SETFCAP
- SETPCAP
- NET_BIND_SERVICE
- SYS_CHROOT
- KILL
- AUDIT_WRITE
- SYS_NICE
- SYS_ADMIN
- SYS_RESOURCE
- NET_ADMIN
- SYS_PTRACE
cap_drop:
- all
container_name: hostp
devices:
- /dev/fuse
- /dev/net/tun
environment:
XR_INTERFACES: Mg0/RP0/CPU0/0:xr-140,Gi0/0/0/0:xr-30,Gi0/0/0/1:xr-40
image: xrd/jnightin/crash-initrd/dev/l2vpn_pi_dataplane_srv6
networks:
hosta-gi7-hostp-gi0: null
hostb-gi7-hostp-gi1: null
hostp-mg0: null
security_opt:
- apparmor:unconfined
stdin_open: true
tmpfs:
- /run
tty: true
volumes:
- hostp:/xr-storage/
- source: /nobackup/jnightin/crash-initrd
target: /nobackup/jnightin/crash-initrd
type: bind
- read_only: true
source: /sys/fs/cgroup
target: /sys/fs/cgroup
type: bind
linux-1:
cap_add:
- NET_ADMIN
container_name: linux-1
entrypoint: /bin/bash
image: networkstatic/iperf3
networks:
- hosta-linux
stdin_open: true
tty: true
volumes:
- source: /nobackup/jnightin/crash-initrd
target: /nobackup/jnightin/crash-initrd
type: bind
linux-2:
cap_add:
- NET_ADMIN
container_name: linux-2
entrypoint: /bin/bash
image: networkstatic/iperf3
networks:
- hostb-linux
stdin_open: true
tty: true
volumes:
- source: /nobackup/jnightin/crash-initrd
target: /nobackup/jnightin/crash-initrd
type: bind
version: '3.5'
volumes:
hosta:
name: hosta
hostb:
name: hostb
hostp:
name: hostp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment