saltstack/salt — pull request #11489 by baconz (2014-03-24 20:42:47+00:00)
Title: Debian static route scripts include iface specification

I can't see any harm in the specifying the interface name in the route command for debian. @garethgreenaway do you see any reason why this would cause a problem? In cases where the kernel can't figure out which interface to assign a route, it is required. Explicit is better than implicit, right? From the route man page:

dev If force the route to be associated with the specified device, as
the kernel will otherwise try to determine the device on its own
(by checking already existing routes and device specifications,
and where the route is added to). In most normal networks you
won't need this.

If dev If is the last option on the command line, the word dev
may be omitted, as it's the default. Otherwise the order of the
route modifiers (metric - netmask - gw - dev) doesn't matter.