Netplan should support "type" for routes

Bug #1892272 reported by Richard Laager
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
netplan
Fix Released
Undecided
Unassigned

Bug Description

I need the equivalent of this for tproxy with Squid:

ip -f inet6 route add local default dev $IFACE table 99
ip -f inet route add local default dev $IFACE table 100

The first piece is that Netplan does not support "dev" (and requires "via"). This is already covered by:
https://bugs.launchpad.net/netplan/+bug/1805038

The second piece is that I need to set the "type" of the route. From `man ip-route`, TYPE can be: unicast | local | broadcast | multicast | throw | unreachable | prohibit | blackhole | nat. The default is "unicast", which is typically omitted when using `ip route`. Ideally, Netplan should support the full grammar, which is probably no additional work. All I care about personally is "local".

Tags: fr-1078 sts
tags: added: sts
Lukas Märdian (slyon)
tags: added: fr-1078
Richard Laager (rlaager)
Changed in netplan:
status: New → Confirmed
Revision history for this message
Lukas Märdian (slyon) wrote :

I started drafting a fix here: https://github.com/canonical/netplan/pull/248

Changed in netplan:
status: Confirmed → In Progress
Revision history for this message
Lukas Märdian (slyon) wrote :

Released in 0.104

Changed in netplan:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers