Modify

Opened 6 years ago

Last modified 4 years ago

#11582 accepted defect

NETIFD ifip/ifdown: routes in custom rt_tables deleted when issuing "ifdown".

Reported by: jeroen.louwes@… Owned by: nbd
Priority: normal Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: netifd route Cc:

Description

Hello devs,

When a custom routing table is set with a route with multiple nexthop's and an interface is manually set to down, all other nexthop's are deleted too.

Before netifd, only the affected nexthop was set to dead and al other nexthop's remain active. I hope this way of functioning can be restored with netifd (at least for custom rt_tables).

Example:

(before netifd)
root@openwrt:~# ip rout list tabl 7
default metric 1

nexthop via 82.168.15.254 dev eth0.2 weight 1
nexthop via 89.98.251.1 dev eth0.1 weight 1

default dev 3g-isp3 metric 2
root@openwrt:~# ifdown isp1
root@openwrt:~# ip rout list tabl 7
default metric 1

nexthop via 82.168.15.254 dev eth0.2 weight 1
nexthop via 89.98.251.1 dev eth0.1 weight 1 dead

default dev 3g-isp3 metric 2

after (with netifd)
root@openwrt:~# ip rout list tabl 7
default metric 1

nexthop via 82.168.15.254 dev eth0.2 weight 1
nexthop via 89.98.251.1 dev eth0.1 weight 1

default dev 3g-isp3 metric 2
root@openwrt:~# ifdown isp1
root@openwrt:~# ip rout list tabl 7
default dev 3g-isp3 metric 2

Hope this is resolvable as i use this feature for mwan2.

Thank you!

Attachments (0)

Change History (3)

comment:1 Changed 6 years ago by anonymous

Sorry for bad formatting, here again, but better readable.

(before netifd)
root@mercurius:~# ip route list table 7
default  metric 1 
	nexthop via 82.168.15.254  dev eth0.2 weight 1
	nexthop via 89.98.251.1  dev eth0.1 weight 1
default dev 3g-isp3  metric 2 
root@openwrt:~# ifdown isp1
root@mercurius:~# ip route list table 7
default  metric 1 
	nexthop via 82.168.15.254  dev eth0.2 weight 1
	nexthop via 89.98.251.1  dev eth0.1 weight 1 dead
default dev 3g-isp3  metric 2


after (with netifd)
root@mercurius:~# ip route list table 7
default  metric 1 
	nexthop via 82.168.15.254  dev eth0.2 weight 1
	nexthop via 89.98.251.1  dev eth0.1 weight 1
default dev 3g-isp3  metric 2 
root@openwrt:~# ifdown isp1
root@mercurius:~# ip route list table 7
default dev 3g-isp3  metric 2 

comment:2 Changed 6 years ago by nbd

  • Owner changed from developers to nbd
  • Status changed from new to accepted

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as accepted .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.