Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 73 additions & 73 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -19,84 +19,84 @@ ifupdown2 (3.2.0) unstable; urgency=medium

ifupdown2 (3.1.0-1) unstable; urgency=medium

* New: ifquery-check now validates admin state
* New: bond: bond mac should always be inherited from it's first slave

* New: macvlan/addressvirtual features:
- check interface name lenght and warn if len > 15
- sync macvlan forwarding state with lower-device

* New: vxlan features:
- Single vxlan device support (bridge-vlan-vni-map)
New attributes:
- vxlan-mcastgrp-map (vxlan multicast group for single-vxlan device)
- vxlan-vnifilter (vxlan vni filter for single-vxlan device)
- vxlan-remoteip-map (static HREP entries for static single vxlan dev)
- vxlan-tos (ToS value)
- vxlan-udp-csum (whether to perform checksumming or not)
New policy:
- vxlan-support-mix-dev-types: allow mix of traditional and single
vxlan device (default to yes)

* New: bridge features:
- add multi bridge support for bridge_set_static_mac_from_port=yes
- check if bridge mac is already inherited from a port
- detect VXLAN mis-config VNI "bridge-learning=on" and warn
- detect and warn when arp suppression is enabled but no vlan config
- bridge-arp-nd-suppress with ifquery --with-default if policy is set
- enable ipv6 on SVD brport
- enable forwarding on dhcp bridges (fixes: #179)
New attribute:
- bridge-vlan-vni-map (single vxlan device support)
New policy:
- bridge_always_up_dummy_brport

* New: address features:
- warn user if L3-SVI is configured with "ip-forward off"
- enable ipv6 before adding new address
New policies:
- check_l3_svi_ip_forwarding (check ip forward on l3 svi, default off)
- ip_blacklist: blacklist specific ip addresses

* New: vlan features:
- check vlan-id misconfiguration and print warning
New attribute:
- vlan-bridge-binding (if enabled link state is no longer automatically
transferred from the lower device)

* Fix: address: remove stale fdb entry for svi (when hwaddress is used)
* Fix: usercmds: Set environment just like the original ifupdown
* Fix: update mako template warning (python3-mako)
* Fix: batman_adv: fix unresolved reference
* New: ifquery-check now validates admin state
* New: bond: bond mac should always be inherited from it's first slave

* New: macvlan/addressvirtual features:
- check interface name lenght and warn if len > 15
- sync macvlan forwarding state with lower-device

* New: vxlan features:
- Single vxlan device support (bridge-vlan-vni-map)
New attributes:
- vxlan-mcastgrp-map (vxlan multicast group for single-vxlan device)
- vxlan-vnifilter (vxlan vni filter for single-vxlan device)
- vxlan-remoteip-map (static HREP entries for static single vxlan dev)
- vxlan-tos (ToS value)
- vxlan-udp-csum (whether to perform checksumming or not)
New policy:
- vxlan-support-mix-dev-types: allow mix of traditional and single
vxlan device (default to yes)

* New: bridge features:
- add multi bridge support for bridge_set_static_mac_from_port=yes
- check if bridge mac is already inherited from a port
- detect VXLAN mis-config VNI "bridge-learning=on" and warn
- detect and warn when arp suppression is enabled but no vlan config
- bridge-arp-nd-suppress with ifquery --with-default if policy is set
- enable ipv6 on SVD brport
- enable forwarding on dhcp bridges (fixes: #179)
New attribute:
- bridge-vlan-vni-map (single vxlan device support)
New policy:
- bridge_always_up_dummy_brport

* New: address features:
- warn user if L3-SVI is configured with "ip-forward off"
- enable ipv6 before adding new address
New policies:
- check_l3_svi_ip_forwarding (check ip forward on l3 svi, default off)
- ip_blacklist: blacklist specific ip addresses

* New: vlan features:
- check vlan-id misconfiguration and print warning
New attribute:
- vlan-bridge-binding (if enabled link state is no longer automatically
transferred from the lower device)

* Fix: address: remove stale fdb entry for svi (when hwaddress is used)
* Fix: usercmds: Set environment just like the original ifupdown
* Fix: update mako template warning (python3-mako)
* Fix: batman_adv: fix unresolved reference

-- Julien Fortin <[email protected]> Mon, 05 Jul 2021 23:42:42 +0200

ifupdown2 (3.0.0-1) unstable; urgency=medium

* New: python3 support
* New: attribute alias support
* New: bridge-always-up attribute
* New: set bridge mtu with policy default
* New: ES bond with "es-sys-mac" attribute
* New: vxlan attribute: vxlan-mcastgrp-map
* New: support for "veth-peer-name" attribute
* New: dhcp policy: dhclient_retry_on_failure
* New: support for marking interfaces as mgmt interfaces
* New: bridge-vlan-vni-map attribute (single vxlan device)
* New: dhcp: skipping dhcp configuration if link-down yes
* New: vrf-slave: keep vlan down if lower device has "link-down yes"
* New: vxlan: support for vxlan-svcnodeip6 and vxlan-mcastgrp6 (fixes #43)
* New: support for add ovs-ports-condone-regex attribute (openvswitch)
* Fix: dry-run exceptions
* Fix: bond enslavement ordering
* Fix: process MTU before addrgen
* Fix: set bridge MTU after bridge creation
* Fix: ifquery-running: incorrect displayed data
* Fix: tunnel configuration compatibility with ifupdown1
* Fix: start-networking script is back to handle mgmt & hotplug cases
* Fix: devices matching with ".{0,13}\-v" could get removed by ifreload
* Fix: mstpctl: check mstpctl-stp and bridge-stp and fix bridge cache update
* Removing python-argcomplete dependency
* New: python3 support
* New: attribute alias support
* New: bridge-always-up attribute
* New: set bridge mtu with policy default
* New: ES bond with "es-sys-mac" attribute
* New: vxlan attribute: vxlan-mcastgrp-map
* New: support for "veth-peer-name" attribute
* New: dhcp policy: dhclient_retry_on_failure
* New: support for marking interfaces as mgmt interfaces
* New: bridge-vlan-vni-map attribute (single vxlan device)
* New: dhcp: skipping dhcp configuration if link-down yes
* New: vrf-slave: keep vlan down if lower device has "link-down yes"
* New: vxlan: support for vxlan-svcnodeip6 and vxlan-mcastgrp6 (fixes #43)
* New: support for add ovs-ports-condone-regex attribute (openvswitch)
* Fix: dry-run exceptions
* Fix: bond enslavement ordering
* Fix: process MTU before addrgen
* Fix: set bridge MTU after bridge creation
* Fix: ifquery-running: incorrect displayed data
* Fix: tunnel configuration compatibility with ifupdown1
* Fix: start-networking script is back to handle mgmt & hotplug cases
* Fix: devices matching with ".{0,13}\-v" could get removed by ifreload
* Fix: mstpctl: check mstpctl-stp and bridge-stp and fix bridge cache update
* Removing python-argcomplete dependency

-- Julien Fortin <[email protected]> Tue, 04 Aug 2020 23:42:42 +0200

Expand Down
1 change: 0 additions & 1 deletion debian/compat

This file was deleted.

2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Source: ifupdown2
Section: admin
Priority: optional
Maintainer: Julien Fortin <[email protected]>
Build-Depends: debhelper (>= 9.20160709),
Build-Depends: debhelper-compat (= 13),
dh-python,
python3,
python3-all,
Expand Down
5 changes: 5 additions & 0 deletions debian/ifupdown2.tmpfiles
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Manage ifupdown2 runtime directory

#Type Path Mode UID GID Age Argument
d /run/network 0775 root root - -
L /etc/network/run - - - - /run/network
10 changes: 3 additions & 7 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export PYBUILD_NAME=ifupdown2
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/ --install-scripts=/usr/share/

%:
dh $@ --with=python3 --with systemd --buildsystem=pybuild
dh $@ --with=python3 --buildsystem=pybuild

override_dh_installman:
./ifupdown2/man/genmanpages.sh ./ifupdown2/man ./man
Expand All @@ -16,12 +16,8 @@ override_dh_install:
mkdir -p debian/ifupdown2/lib/systemd/system/
install --mode=644 debian/[email protected] debian/ifupdown2/lib/systemd/system/


override_dh_systemd_start:
dh_systemd_start --name=networking --no-start

override_dh_systemd_enable:
dh_systemd_enable --name=networking
override_dh_installsystemd:
dh_installsystemd --name=networking --no-start

override_dh_compress:
dh_compress -X.py
5 changes: 1 addition & 4 deletions etc/init.d/networking
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Raise network interfaces.
# Description: Prepare /run/network directory, ifstate file and raise network interfaces, or take them down.
# Description: Prepare ifstate file and raise network interfaces, or take them down.
### END INIT INFO

RUN_DIR="/run/network"
Expand Down Expand Up @@ -128,9 +128,6 @@ ifup_hotplug () {
ifupdown_init() {
# remove state file at boot
[ ! -e ${IFSTATE_LOCKFILE} ] && rm -f ${IFSTATE_FILE}
[ ! -e /run/network ] && mkdir -p /run/network &>/dev/null
[ ! -e /etc/network/run ] && \
ln -sf /run/network /etc/network/run &>/dev/null
}

case "$1" in
Expand Down
3 changes: 0 additions & 3 deletions ifupdown2/ifupdown/statemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,6 @@ def init(self):
except Exception as e:
raise Exception("statemanager: unable to create required directory: %s" % str(e))

if not os.path.exists(self.state_rundir):
os.makedirs(self.state_rundir)

self.state_file = "%s/%s" % (self.state_dir, self.state_filename)

def _init_makedirs_state_dir(self):
Expand Down
4 changes: 0 additions & 4 deletions ifupdown2/sbin/start-networking
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,6 @@ ifup_mgmt () {
ifupdown_init() {
# remove state file at boot
[ ! -e ${IFSTATE_LOCKFILE} ] && rm -f ${IFSTATE_FILE}

[ ! -e /run/network ] && mkdir -p /run/network &>/dev/null
[ ! -e /etc/network/run ] && \
ln -sf /run/network /etc/network/run &>/dev/null
}

case "$1" in
Expand Down