#3844 redhat-linux-lib.pl unapply_interface is commented out


The subroutine unapply_interface is commented out in the redhat-linux-lib.pl file. This function is used when trying to remove and apply an activated interface, but as it is commented out, an error occurs when trying to do that.

System is Scientific Linux 6 alpha (based on RHEL 6) and the browser is firefox.

This is solved by uncommenting the subroutine, but I don't really know why it is kept commented out in the first place.


  • Jamie Cameron

    Jamie Cameron - 2011-01-24

    What error message are you getting exactly? Even with this function missing, Webmin should fall back to just calling "ifcfg eth0:xxx 0" to take down the interface..

  • Rogerio

    Rogerio - 2011-01-25

    I created and applied an static addressed interface and then just clicked on it and chose "Delete and Apply", the following error comes up and then nothing happens:

    Failed to deactivate interface :

    When uncomenting the unapply_interface everything works fine.

  • Jamie Cameron

    Jamie Cameron - 2011-01-25

    Looks like the ifconfig command is failing ..

    Was this a real or virtual interface?

  • Rogerio

    Rogerio - 2011-02-03

    It was a real interface, eth0.

  • Jamie Cameron

    Jamie Cameron - 2011-02-03

    So if you SSH in as root and run :

    ifconfig eth0 down

    does the eth0 interface go away? If not, does this command take it down :

    ifdown eth0

  • Rogerio

    Rogerio - 2011-02-04

    Both commands made the interface go away as expected.

  • Jamie Cameron

    Jamie Cameron - 2011-02-04

    So if you run ifconfig -a now, does eth0 appear at all?

  • Rogerio

    Rogerio - 2011-02-07

    yes, even after the ifdown,

  • Jamie Cameron

    Jamie Cameron - 2011-02-08

    Ok, looks like ifdown doesn't actually delete the interface, just de-activates it. I will fix Webmin to handle this case in the next release ..

  • Jamie Cameron

    Jamie Cameron - 2011-02-08
    • status: open --> closed-fixed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks