Changeset 6044


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

adding delete_interfaces_in_range functionality

Location:
n4d-network/trunk/fuentes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • n4d-network/trunk/fuentes/debian/changelog

    r4515 r6044  
     1n4d-network (1.10) xenial; urgency=high
     2
     3  * Adding replication interface clean when initializing
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Mon, 16 Oct 2017 16:53:01 +0200
     6
    17n4d-network (1.9.3) xenial; urgency=high
    28
  • n4d-network/trunk/fuentes/debian/control

    r290 r6044  
    1818Package: n4d-network
    1919Architecture: all
    20 Depends: ${shlibs:Depends}, ${misc:Depends}, n4d, python-llxvars, python-llxnet, python2.7, n4d-lliurex-base (>=0.7)
     20Depends: ${shlibs:Depends}, ${misc:Depends}, n4d, python-llxvars, python-llxnet (>=0.18), python2.7, n4d-lliurex-base (>=0.7)
    2121Description: N4D plugin to configure network interface
    2222 Utility by configure interface, mask, etc
  • n4d-network/trunk/fuentes/install/etc/n4d/conf.d/NetworkManager

    r144 r6044  
    2020get_routing_persistence=anonymous
    2121get_nat_persistence=anonymous
     22delete_interfaces_in_range=adm,admins
    2223backup=adm,admins
    2324restore=adm,admins
  • 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.