netplan
netplan copied to clipboard
routing-policy: add 'iif' and 'oif' keys to routing-policy entry
Description
It's now possible to specify the incoming interface and the outgoing interface for a routing policy entry.
Example:
network:
version: 2
ethernets:
if0: {}
eth0:
dhcp4: true
routing-policy:
- table: 101
iif: eth0
- table: 101
oif: if0
Checklist
- [x] Runs
make checksuccessfully. - [x] Retains code coverage (
make check-coverage). - [x] New/changed keys in YAML format are documented.
- [ ] (Optional) Adds example YAML for new feature.
- [ ] (Optional) Closes an open bug in Launchpad.
This would close the languishing Bug 1798417 provided one adds a (symmetric, one hopes) implementation for oif as well :)
This would close the languishing Bug 1798417 provided one adds a (symmetric, one hopes) implementation for
oifas well :)
As you suggested, I added the 'oif' key, thank you!
@slyon looks like there's a second PR for the same feature here: https://github.com/canonical/netplan/pull/557