mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
fixes to make addon scripts work by default
ifupdown2 can invoke scripts under /etc/network/if-*.d/* in the required order with the required environment variables. This patch includes fixes to execute these scripts. The following attributes in /etc/network/ifupdown2/ifupdown.conf can influence the execution behaviour of python-addon modules and /etc/network/if-*.d/* <ifupdown.conf> addon_syntax_check=0 addon_scripts_support=1 addon_python_modules_support=1 </ifupdown.conf> Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
This commit is contained in:
@@ -104,7 +104,7 @@ class ifaceScheduler():
|
||||
try:
|
||||
ifupdownobj.exec_command(mname, cmdenv=cenv)
|
||||
except Exception as e:
|
||||
ifupdownobj.log_error(str(e))
|
||||
ifupdownobj.log_warn(str(e))
|
||||
|
||||
@classmethod
|
||||
def run_iface_list_ops(cls, ifupdownobj, ifaceobjs, ops):
|
||||
|
Reference in New Issue
Block a user