Skip to content

Add custom network and bootstrap cloud-init files for Ubuntu and FreeBSD#460

Open
Rei-Tw wants to merge 1 commit into
srl-labs:masterfrom
Rei-Tw:pr-ci-override
Open

Add custom network and bootstrap cloud-init files for Ubuntu and FreeBSD#460
Rei-Tw wants to merge 1 commit into
srl-labs:masterfrom
Rei-Tw:pr-ci-override

Conversation

@Rei-Tw

@Rei-Tw Rei-Tw commented May 5, 2026

Copy link
Copy Markdown

This allows to deploy custom cloud-init configurations, for bootstrap and network.
FreeBSD already had bootstrap override, this PR includes network aswell.

How to use

# bootstrap-config.yaml
runcmd:
- mkdir /root/test
# network-config.yaml
ethernets:
  ens2:
    addresses: ['192.168.10.1/24']
vlans:
  ens2.10:
    id: 10
    link: ens2
    addresses: ['192.168.20.1/24']

You must bind the files inside the container :

topology:
  nodes:
    ubuntu:
      kind: generic_vm
      image: vrnetlab/canonical_ubuntu:jammy
      binds:
        - ./bootstrap-config.yaml:/config/bootstrap-cloud-init.yaml
        - ./network-config.yaml:/config/network-cloud-init.yaml

@Rei-Tw

Rei-Tw commented Jun 2, 2026

Copy link
Copy Markdown
Author

@hellt Hello,

Do you have time to check for this PR ?

Thanks,

@hellt

hellt commented Jun 3, 2026

Copy link
Copy Markdown
Member

Hi @Rei-Tw you will have to document the changes made in this PR and the non backwards compatibility considerations (as I see you removed the way to provide a single cloud init file?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants