mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
attributes' for backward compatibility Ticket: CM-1438 Reviewed By: Testing Done: Tested ifupdown sanity and new functionality support for: - -i <interface file> - template lookup path and move all template handling to a separate module template.py - new ifupdown2 config file /etc/network/ifupdown2/ifupdown2.conf - bridge_waitport and bridge_maxwait - moved addons.conf to /var/lib/ifupdownaddons/
14 lines
309 B
Python
14 lines
309 B
Python
#!/usr/bin/python
|
|
|
|
|
|
class utils():
|
|
|
|
@classmethod
|
|
def importName(cls, modulename, name):
|
|
""" Import a named object """
|
|
try:
|
|
module = __import__(modulename, globals(), locals(), [name])
|
|
except ImportError:
|
|
return None
|
|
return getattr(module, name)
|