Support default route with non-default attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
vpnc-scripts (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The /usr/share/
$ sudo ip route
default via 192.168.1.254 dev wlp3s0 proto static metric 600
169.254.0.0/16 dev wlp3s0 scope link metric 1000
192.168.1.0/24 dev wlp3s0 proto kernel scope link src 192.168.1.85 metric 600
cannot be simply "ip route replace"d by a command of the form "ip route replace dev <foo>". Also, the present logic to save and then restore the original rute is broken because not all the route attributes are preserved AND the replacement attributes don't match the attributes of the new default route.
The attached patch addresses both these problems.
The software versions in use are up-to-date Wily with:
$ dpkg-query -l | egrep 'vpnc-scripts|
ii iproute 1:4.1.1-1ubuntu1 all transitional dummy package for iproute2
ii iproute2 4.1.1-1ubuntu1 amd64 networking and traffic control tools
ii vpnc-scripts 0.1~git20140806-1 all Network configuration scripts for VPNC and OpenConnect
description: | updated |
description: | updated |
The attachment "Proposed patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]