** Description changed: Hello I am trying to use netplan to create a vrf, add routes to the vrf and add interfaces to the vrf. This document seems to show netplan support for vrfs. https://canonical-netplan.readthedocs-hosted.com/en/stable/examples.html#complex-example bkelly@u3:~$ sudo netplan --debug apply ** (generate:2721): DEBUG: 02:34:20.704: starting new processing pass ** (generate:2721): DEBUG: 02:34:20.705: recording missing yaml_node_t ens192 ** (generate:2721): DEBUG: 02:34:20.705: vrf127: adding new route ** (generate:2721): DEBUG: 02:34:20.705: ens160: adding new route ** (generate:2721): DEBUG: 02:34:20.705: starting new processing pass ** (generate:2721): DEBUG: 02:34:20.705: vrf127: all routes have already been added ** (generate:2721): DEBUG: 02:34:20.705: ens160: all routes have already been added ** (generate:2721): DEBUG: 02:34:20.705: We have some netdefs, pass them through a final round of validation ** (generate:2721): DEBUG: 02:34:20.705: vrf127: Adopted VRF routes table to 127 bkelly@u3:~$ ip vrf Name Table ----------------------- No VRF has been configured bkelly@u3:~$ cat /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: - renderer: networkd - version: 2 - vrfs: - vrf127: - table: 127 - interfaces: [ ens192 ] - routes: - - to: default - via: 2.2.0.1 - ethernets: - ens160: - addresses: - - 192.168.0.244/24 - routes: - - to: default - via: 192.168.0.1 - nameservers: - addresses: - - 192.168.0.253 - - 192.168.0.254 - search: - - opiehome.com - ens192: - addresses: - - 2.2.0.243/24 - nameservers: - addresses: [] - search: [] - ens224: - addresses: - - 22.2.0.243/24 - nameservers: - addresses: [] - search: [] + renderer: networkd + version: 2 + vrfs: + vrf127: + table: 127 + interfaces: [ ens192 ] + routes: + - to: default + via: 2.2.0.1 + ethernets: + ens160: + addresses: + - 192.168.0.244/24 + routes: + - to: default + via: 192.168.0.1 + nameservers: + addresses: + - 192.168.0.253 + - 192.168.0.254 + search: + - opiehome.com + ens192: + addresses: + - 2.2.0.243/24 + nameservers: + addresses: [] + search: [] + ens224: + addresses: + - 22.2.0.243/24 + nameservers: + addresses: [] + search: [] After some debugging I found out that the vrf kernel module was not loaded. It would be nice that Netplan warns/fails on apply when this is the case. + + OS: Ubuntu 24.04.2 LTS x86_64 + Kernel: 6.8.0-57-generic
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2109600 Title: VRF configuration silently fails if kernel vrf module is not loaded To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/netplan.io/+bug/2109600/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
