2014-04-18 14:09:20 -07:00
|
|
|
#
|
2014-05-09 09:10:49 -07:00
|
|
|
# ifupdown2 configuration file
|
2014-04-18 14:09:20 -07:00
|
|
|
#
|
2014-05-09 09:10:49 -07:00
|
|
|
# This file contains default settings for ifupdown
|
2014-04-18 14:09:20 -07:00
|
|
|
#
|
|
|
|
|
2019-12-17 01:04:54 +01:00
|
|
|
# use ifupdown2d
|
|
|
|
use_daemon=no
|
|
|
|
|
2016-07-10 20:30:24 -07:00
|
|
|
# enable templates
|
2016-09-15 13:37:41 -07:00
|
|
|
template_enable=1
|
2016-07-10 20:30:24 -07:00
|
|
|
|
2014-05-09 09:10:49 -07:00
|
|
|
# default template engine (only mako is currently supported)
|
|
|
|
template_engine=mako
|
2014-04-18 14:09:20 -07:00
|
|
|
|
2014-05-09 09:10:49 -07:00
|
|
|
# default template lookup path during template rendering
|
|
|
|
template_lookuppath=/etc/network/ifupdown2/templates
|
2014-09-25 10:55:08 -07:00
|
|
|
|
2015-08-20 22:59:44 -04:00
|
|
|
# default network configuration filepath
|
|
|
|
default_interfaces_configfile=/etc/network/interfaces
|
2015-10-09 16:09:10 -07:00
|
|
|
|
|
|
|
# The -i interfacefile option is allowed by default but
|
|
|
|
# can be disabled by setting the below option to 1 to
|
2015-08-20 22:59:44 -04:00
|
|
|
# reduce security issues (due to the pre- and post- commands)
|
2015-10-09 16:09:10 -07:00
|
|
|
disable_cli_interfacesfile=0
|
2015-08-20 22:59:44 -04:00
|
|
|
|
2016-07-10 22:48:42 -07:00
|
|
|
|
|
|
|
# enable addon module syntax check:
|
|
|
|
# Python addon modules register dictionary of supported attributes.
|
|
|
|
# The syntax checker in ifupdown2 uses this dictionary for syntax
|
|
|
|
# checks in the interfaces file. This works well, when only python modules
|
|
|
|
# are used. But when a mix of scripts and modules are used (which is the
|
|
|
|
# default case), you may get false warnings for attributes supported
|
|
|
|
# by scripts
|
2018-10-31 15:42:06 +01:00
|
|
|
addon_syntax_check=0
|
2016-07-10 22:48:42 -07:00
|
|
|
|
|
|
|
# Support executing of ifupdown style scripts.
|
|
|
|
# Note that by default python addon modules override scripts with the same
|
|
|
|
# name
|
2018-10-31 15:42:06 +01:00
|
|
|
addon_scripts_support=1
|
2014-11-03 17:55:51 -08:00
|
|
|
|
2016-07-10 22:48:42 -07:00
|
|
|
# enable python addons
|
|
|
|
addon_python_modules_support=1
|
|
|
|
|
2015-01-16 09:54:19 -08:00
|
|
|
# By default ifupdown2 only supports a single vlan filtering bridge
|
2014-11-11 21:58:12 -08:00
|
|
|
# on the system. Set this flag to 1 to support multiple vlan
|
|
|
|
# filtering bridges
|
|
|
|
multiple_vlan_aware_bridge_support=0
|
|
|
|
|
2014-11-03 17:55:51 -08:00
|
|
|
# ifquery check status strings.
|
|
|
|
# By default `ifquery --check` prints the check and
|
|
|
|
# cross marks against interface attributes.
|
|
|
|
# Use the below strings to modify the default behaviour.
|
2014-11-11 21:58:12 -08:00
|
|
|
#
|
Add support to display status (pass, fail) in ifquery --check json output
Ticket: CM-7464
Reviewed By: CCR-3507
Testing Done: Tested ifquery check sanity
ifquery --check non-json output displays 'pass' and 'fail' for
each attribute on the same line (see below). This output is not json
friendly. For json, include status in 'config_status' a dictionary
whose keys are similar to the 'config' dictionary but values are status
for the corresponding keys in the 'config' dictionary (see example below)
auto bond4
iface bond4 inet static
[pass]
bond-mode 802.3ad [pass]
bond-miimon 100 [pass]
bond-use-carrier 1 [pass]
bond-lacp-rate 1 [pass]
bond-min-links 1 [pass]
bond-xmit-hash-policy layer3+4 [pass]
bond-slaves swp3 swp4 [pass]
[
{
"name": "bond4",
"addr_method": "static",
"addr_family": "inet",
"auto": true,
"config": {
"bond-use-carrier": "1",
"bond-miimon": "100",
"bond-lacp-rate": "1",
"bond-min-links": "1",
"bond-slaves": "swp3 swp4",
"bond-mode": "802.3ad",
"bond-xmit-hash-policy": "layer3+4"
},
"config_status": {
"bond-use-carrier": "pass",
"bond-miimon": "pass",
"bond-lacp-rate": "pass",
"bond-min-links": "pass",
"bond-slaves": "pass",
"bond-mode": "pass",
"bond-xmit-hash-policy": "pass"
},
"status": "pass"
}
]
2015-09-17 21:57:06 -07:00
|
|
|
ifquery_check_success_str=pass
|
|
|
|
ifquery_check_error_str=fail
|
2014-11-15 23:34:02 -08:00
|
|
|
ifquery_check_unknown_str=
|
2014-11-11 21:58:12 -08:00
|
|
|
#
|
2014-11-03 17:55:51 -08:00
|
|
|
|
2014-11-11 21:58:12 -08:00
|
|
|
# This attribute controls iface/vlan range expansions
|
|
|
|
# in ifquery default output.
|
|
|
|
ifquery_ifacename_expand_range=0
|
2014-11-03 17:55:51 -08:00
|
|
|
|
2014-12-17 12:39:38 -08:00
|
|
|
# Let link master (bridges, bonds) own the link state of slaves
|
|
|
|
link_master_slave=1
|
|
|
|
|
|
|
|
# Delay admin state change till the end
|
|
|
|
delay_admin_state_change=0
|
|
|
|
|
2015-04-25 15:33:28 -07:00
|
|
|
# ifreload by default downs: 'all interfaces for which config changed' +
|
|
|
|
# 'interfaces that were deleted'. With the below variable set to '0'
|
|
|
|
# ifreload will only down 'interfaces that were deleted'
|
|
|
|
ifreload_down_changed=0
|
2015-11-16 21:00:40 -08:00
|
|
|
|
|
|
|
# squash all addr config when you process the first interface
|
2015-11-30 08:33:23 -08:00
|
|
|
addr_config_squash=0
|
2016-03-08 20:40:02 -08:00
|
|
|
|
|
|
|
# squash iface config into one when you have multiple
|
|
|
|
# ifaces stanzas for an interface
|
|
|
|
ifaceobj_squash=0
|
|
|
|
|
2016-04-29 21:19:42 +02:00
|
|
|
# By default ifupdown2 will adjust logical devices MTU
|
|
|
|
# based on the physical interface they are running on top of.
|
|
|
|
# set this flag to 0 to disable this behaviour
|
|
|
|
adjust_logical_dev_mtu=1
|
2019-01-11 12:00:39 +08:00
|
|
|
|
|
|
|
# directory where the state file is stored
|
|
|
|
# if this directory doesn't exists ifupdown2 will create it
|
|
|
|
# if directory creation fails or state_dir variable is empty
|
2019-12-17 01:04:54 +01:00
|
|
|
# state_dir will default to /var/tmp/network/
|
|
|
|
state_dir=/var/tmp/network/
|