allow custom method in "/etc/network/interfaces"

Bug #1075256 reported by Richard Huddleston
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ifupdown (Debian)
New
Unknown
ifupdown (Ubuntu)
Confirmed
Wishlist
Andrej Shadura

Bug Description

we have several custom networking scripts, and find it would be easiest to handle them with a custom "method" in "/etc/network/interfaces" . we can't just add scripts to if-up.d, because we need strong ordering of command execution. examples would be adding macvlans, and ip tunnels. for example, we need pre-up in "/etc/network/interfaces" to run before ANY other scripts , because we do an ip link creation there. there are builtin "methods" which cover some of the functionality we want, but clearly this doesn't scale like a plugin based architecture would. unfortunately, there is no easy way to plug in a custom method for handling these networking stanzas. thus, we have to write stuff like this for each interface.

auto vmac-ha
iface vmac-ha inet manual
        [ NORMAL ENTRIES ]
        pre-up my-vmac-helper
        up my-vmac-helper
        down my-vmac-helper
        post-down my-vmac-helper

it would be MUCH easier to have something like this

auto vmac-ha
iface vmac-ha inet custom my-vmac-helper
        [ NORMAL ENTRIES ]

Changed in ifupdown (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Andrej Shadura (andrew.sh) wrote :

Richard, I have this on my plan, so if I have enough time this feature will be soon implemented.

Changed in ifupdown (Ubuntu):
assignee: nobody → Andrew Shadura (andrew.sh)
status: Triaged → Confirmed
no longer affects: ifupdown
Changed in ifupdown (Debian):
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.