Ignore:
Timestamp:
Oct 16, 2017, 5:04:00 PM (2 years ago)
Author:
hectorgh
Message:

adding delete_interfaces_in_range functionality

File:
1 edited

Legend:

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

    r4515 r6044  
    2929                return {'status':True,'msg':self.interfaces.get_list_interfaces()}
    3030        #def get_interfaces_network_file
    31        
    32        
     31
     32        def delete_interfaces_in_range(self,range_ip):
     33
     34                for iface in self.interfaces.get_interfaces_in_range(range_ip):
     35                        self.interfaces.delete_all_interface(iface)
     36
     37                return {'status':True,'msg':'Old replication interfaces removed'}
     38
     39        #def delete_interfaces_in_range
    3340
    3441        def load_network_file(self):
Note: See TracChangeset for help on using the changeset viewer.