[Bug 2015022] [NEW] Netplan not merging routes in separate files
Husam Bilal
2015022 at bugs.launchpad.net
Mon Apr 3 00:43:29 UTC 2023
Public bug reported:
Adding extra static routes in a separate configuration file doesn't seem
to get merged.
Release info:
```
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
```
Example config files:
```
# /etc/netplan/00-config.yaml
network:
version: 2
ethernets:
ens5:
dhcp4: true
dhcp6: false
dhcp4-overrides:
use-routes: false
routes:
- to: 172.31.0.0/16
via: 172.31.0.1
```
```
# /etc/netplan/10-config.yaml
network:
version: 2
ethernets:
ens5:
routes:
- to: 172.18.0.0/24
via: 172.31.1.240
```
Running `netplan --debug get` returns the following output:
```
** (process:1249606): DEBUG: 00:42:14.001: starting new processing pass
** (process:1249606): DEBUG: 00:42:14.001: ens5: adding new route
** (process:1249606): DEBUG: 00:42:14.001: We have some netdefs, pass them through a final round of validation
** (process:1249606): DEBUG: 00:42:14.001: ens5: setting default backend to 1
** (process:1249606): DEBUG: 00:42:14.001: Configuration is valid
network:
version: 2
ethernets:
ens5:
dhcp4: true
dhcp4-overrides:
use-routes: false
dhcp6: false
routes:
- to: "172.31.0.0/16"
via: "172.31.0.1"
```
** Affects: netplan
Importance: Undecided
Status: New
** Also affects: netplan.io (Ubuntu)
Importance: Undecided
Status: New
** No longer affects: netplan.io (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to netplan.io in Ubuntu.
Matching subscriptions: foundations-bugs
https://bugs.launchpad.net/bugs/2015022
Title:
Netplan not merging routes in separate files
Status in netplan:
New
Bug description:
Adding extra static routes in a separate configuration file doesn't
seem to get merged.
Release info:
```
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
```
Example config files:
```
# /etc/netplan/00-config.yaml
network:
version: 2
ethernets:
ens5:
dhcp4: true
dhcp6: false
dhcp4-overrides:
use-routes: false
routes:
- to: 172.31.0.0/16
via: 172.31.0.1
```
```
# /etc/netplan/10-config.yaml
network:
version: 2
ethernets:
ens5:
routes:
- to: 172.18.0.0/24
via: 172.31.1.240
```
Running `netplan --debug get` returns the following output:
```
** (process:1249606): DEBUG: 00:42:14.001: starting new processing pass
** (process:1249606): DEBUG: 00:42:14.001: ens5: adding new route
** (process:1249606): DEBUG: 00:42:14.001: We have some netdefs, pass them through a final round of validation
** (process:1249606): DEBUG: 00:42:14.001: ens5: setting default backend to 1
** (process:1249606): DEBUG: 00:42:14.001: Configuration is valid
network:
version: 2
ethernets:
ens5:
dhcp4: true
dhcp4-overrides:
use-routes: false
dhcp6: false
routes:
- to: "172.31.0.0/16"
via: "172.31.0.1"
```
To manage notifications about this bug go to:
https://bugs.launchpad.net/netplan/+bug/2015022/+subscriptions
More information about the foundations-bugs
mailing list