1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00
Commit Graph

5 Commits

Author SHA1 Message Date
Roopa Prabhu
c1b110e3bf networkinterfaces: fix is_keyword to not match attribute names with keywords in them
Testing Done: Tested with vlan device with vlan-raw-device in interfaces
file

also reported here: https://github.com/CumulusNetworks/ifupdown2/issues/10

is_keyword was matching iface attribute 'vlan-raw-device' to the vlan
keyword and dropping it from ifaceobj config.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Julien Fortin <julien@cumulusnetworks.com>
2016-03-11 02:27:02 +01:00
Roopa Prabhu
878ee1f0dc addon modules: handle unsupported modules
Example: If /sbin/ethtool is not installed dont run the
ethtool addon module.

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
2015-10-26 08:07:21 -07:00
Roopa Prabhu
d38d6fea7f templates: Disable template execution by default
User will have to enable it by enabling it in /etc/network/ifupdown2.conf
template_enable=1

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
2015-10-26 08:05:49 -07:00
Roopa Prabhu
f0ab85ab5d 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>
2015-08-03 02:34:07 -07:00
Roopa Prabhu
c9a33a72d4 move ifupdown2/* .
ifupdown2 code was one level deeper because ifupdown2 initially
had ifupdown2 and ifupdown2-addons as two separate packages.
Since they were combined into one package, it makes sense to
move all combined code under the top level directory

Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
2015-08-02 05:45:48 -07:00