Package: ifupdown
Version: 0.7.47.2
Severity: wishlist

When setting up failover using multiple interfaces the output of IF_ variables are confusing.

My suggestion is to add the interface name (either real or logical, but preferably logical) to that variable, making it easier to use with scripts.

As an example, currently it shows IF_ADDRESS=192.168.1.10 and IF_ADDRESS=10.0.0.5

Now with the interface name: IF_eth0_ADDRESS=192.168.1.10 and IF_eth1_ADDRESS=10.0.0.5

I've tried to patch set_environ() in execute.c myself like this:

 *(environend++) = setlocalenv("IF_%s_%s=%s",
iface->logical_iface, iface->option[i].name, iface->option[i].value ? iface->option[i].value : "");
        *environend = NULL;

but I don't know C enough to rework setlocalenv() function to accept this extra parameter.

From my point of view, this change is probably harmless.

Best regards,
  Flavio


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to