Ignore:
Timestamp:
May 2, 2017, 5:24:15 PM (2 years ago)
Author:
hectorgh
Message:

adding ip addr flush when configuring interfaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • n4d-network/trunk/fuentes/install/usr/share/n4d/python-plugins/NetworkManager.py

    r292 r4515  
    129129                       
    130130                        # Restarting internal interface. Initialization behaves better this way
     131                        os.system("ip addr flush dev %s"%interface)
    131132                        os.system("ifdown %s; ifup %s"%(interface,interface))
    132133               
     
    231232               
    232233                for interface in lliurex.net.get_devices_info():
     234                        os.system("ip addr flush dev %s"%interface["name"])
    233235                        os.system("ifdown %s;ifup %s"%(interface["name"],interface["name"]))
    234236                       
Note: See TracChangeset for help on using the changeset viewer.