--- bms-network-setup-1.9.orig/debian/changelog
+++ bms-network-setup-1.9/debian/changelog
@@ -0,0 +1,299 @@
+bms-network-setup (1.9-1+27.7) stable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Fri, 15 May 2026 16:12:24 +0000
+
+bms-network-setup (1.9-3) stable; urgency=low
+    * Fix network configuration for additional VLAN interfaces,
+      as some distributions leave interfaces down if unknown interface
+      options are configured.  
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Mon, 16 Jan 2022 10:33:11 +0100
+
+bms-network-setup (1.9-2) stable; urgency=low
+    
+    * Add BMS support for OTC Debian 11.
+      - only allow dataSource openTelekomCloud or openStack
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Tue, 19 Jan 2022 10:33:11 +0100
+
+bms-network-setup (1.9-1) stable; urgency=low
+    
+    * Add BMS support for OTC Ubuntu 20.04.
+      - only allow dataSource openTelekomCloud or openStack
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Tue, 20 Apr 2021 12:36:12 +0100
+
+bms-network-setup (1.9) stable; urgency=low
+    
+    * Add BMS support for OTC Ubuntu 20.04.
+      - disable cloud-init network configuration for dataSource openTelekomCloud
+        by using apply_network_config: false (only for BMS)      
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Thu, 15 Apr 2021 12:15:12 +0100
+
+bms-network-setup (1.8) stable; urgency=low
+
+    Fix python2 or python3 shebang and execution for rhel releases.
+    Remove python as build dependency because it is not needed there.
+
+ -- Roman Schiller <roman.schiller@t-systems.com> Fri, 22 May 2020 13:57:25 +0100
+
+bms-network-setup (1.7) stable; urgency=low
+  
+  * add new DataSource OpenTelekomCloud
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Fri, 06 Feb 2020 13:15:16 +0100
+
+bms-network-setup (1.6-2) stable; urgency=low
+  
+  * Fix spelling of license name
+    - from: CC-BY-SA 3.0
+    - to:   CC-BY-SA-3.0
+    see: https://spdx.org/licenses/
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Tue, 11 Feb 2020 13:15:16 +0100
+
+bms-network-setup (1.6-1) stable; urgency=low
+
+  * Whitespace cleanup.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 20 Dec 2019 17:45:16 +0100
+
+bms-network-setup (1.6) stable; urgency=low
+
+    Fix syntax issues with tabs and spaces.
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Tue, 16 Dec 2019 15:12:13 +0100
+
+bms-network-setup (1.5) stable; urgency=low
+
+    Set network bond in netplanc configuration to 'active-backup'
+    when getting mode: 1 from network_data.json
+    netplan does not understand mode: 1 amymore in Ubuntu 18.04
+
+ -- Sabrina Mueller <sabrina-mueller@t-systems.com>  Tue, 26 Nov 2019 15:08:42 +0100
+
+bms-network-setup (1.4-1) stable; urgency=low
+
+  * bms-network-setup-1.4:
+    - Fix syntax for transmit-hash-policy (from Sabrina Mueller). 
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 16 Nov 2018 23:08:42 +0100
+
+bms-network-setup (1.3-2) stable; urgency=low
+
+  * bms-netplan-notab.diff: Remove erroneously introduced tabs from
+    netplan yaml config again. (Sabrina). 
+
+ -- Kurt Garloff <kurt@garloff.de>  Tue, 23 Oct 2018 14:00:42 +0200
+
+bms-network-setup (1.3-1) stable; urgency=low
+
+  * bms-network-setup-1.3:
+    - Fix detection of perm_hwaddr for bond slaves on old kernels.
+    - Fix parsing option -d.
+    - New option -c to remove ifcfg-e* files for non-existing NICs.
+      Use it on EulerOS.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 12 Oct 2018 11:28:58 +0200
+
+bms-network-setup (1.2-4) stable; urgency=low
+
+  * bms-setup-retry-findmac.diff: Retry when searching for NIC with
+    our MAC address. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Wed, 10 Oct 2018 14:10:58 +0200
+
+bms-network-setup (1.2-3) stable; urgency=low
+
+  * Fix SuSE detection for SLES15. (No /etc/SuSE-release!) 
+
+ -- Kurt Garloff <kurt@garloff.de>  Wed, 12 Sep 2018 21:17:29 +0200
+
+bms-network-setup (1.2-2) stable; urgency=low
+
+  * Fix inconsistent indentation.
+
+ -- Kurt Garloff <kurt@garloff.de>  Wed, 12 Sep 2018 18:56:39 +0200
+
+bms-network-setup (1.2-1) stable; urgency=low
+
+  * Update to bms-network-setup-1.2:
+    - Support netplan network config (Ubuntu 18.04), from Sabrina. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Tue, 17 Jul 2018 23:13:35 +0200
+
+bms-network-setup (1.1-3) stable; urgency=low
+
+  * Fix ds-identify config file generation (missing "]")
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu,  3 May 2018 22:01:20 +0200
+
+bms-network-setup (1.1-2) stable; urgency=low
+
+  * bms-py3-compat.diff: Fix python3 compat issue (dict.has_key).
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu,  3 May 2018 11:22:19 +0200
+
+bms-network-setup (1.1-1) stable; urgency=low
+
+  * bms-network-setup-1.1:
+    - Set DHCLINET_PRIMARY_INTERFACE on first bond with dhcp 
+      and gateway on SUSE. Needed for SLES11.
+
+ -- Kurt Garloff <kurt@garloff.de>  Wed,  2 May 2018 23:26:10 +0200
+
+bms-network-setup (1.0-1) stable; urgency=low
+
+  * Update to bms-network-setup-1.0: [OTC osTicket #540700]
+    - Rework NIC renaming: Complete this before any further
+      processing.
+    - When not renaming the interfaces, make sure the bond config
+      refers to the new names.
+    - Also allow phys_interface_id to match MAC address.
+    - Don't write MAC address to phy (ethernet) interface on SUSE.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 27 Apr 2018 17:35:09 +0200
+
+bms-network-setup (0.9-1) stable; urgency=low
+
+  * Update to bms-network-setup-0.9:
+    - Merge rename-if-suse.diff.
+    - Fix JSON name changing: Need to search for bond slave names
+      by original name, not NIC name.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 20 Apr 2018 09:45:35 +0200
+
+bms-network-setup (0.8-2) stable; urgency=low
+
+  * rename-if-suse.diff: Need to rename NICs also on SUSE (and 
+    EulerOS), even though names are eth*. To avoid conflicts,
+    rename JSON names there rather than NICs.
+
+ -- Kurt Garloff <kurt@garloff.de>  Wed, 18 Apr 2018 19:58:24 +0200
+
+bms-network-setup (0.8-1) stable; urgency=low
+
+  * Update to bms-network-setup-0.8:
+    Include fixes from Sabrina Müller to fix Deb/Ubu BMS images.
+    - Fix swapped arguments in network interface renaming.
+    - Don't configure hwaddr for physical interfaces on debian.
+    - Give cloud.cfg.d snippets higher numbers to overrule deb files.
+    - Fix deb packaging to use /opt/otc/bms-setup/ like rpm.
+
+ -- Kurt Garloff <kurt@garloff.de>  Wed, 14 Mar 2018 09:16:54 +0100
+
+bms-network-setup (0.7-2) stable; urgency=low
+
+  * Debian: Fix systemd detection in postinst.
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri,  9 Mar 2018 13:54:11 +0100
+
+bms-network-setup (0.7-1) stable; urgency=low
+
+  * bms-network-setup-0.7:
+    - Now with support for Debian style network interface config.
+
+ -- Kurt Garloff <kurt@garloff.de>  Sun, 25 Feb 2018 18:59:18 +0100
+
+bms-network-setup (0.6-2) stable; urgency=low
+
+  * Move /opt/t-systems to /opt/otc to align with Huawei OTC pkgs. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Mon,  5 Feb 2018 23:15:03 +0100
+
+bms-network-setup (0.6-1) stable; urgency=low
+
+  * bms-network-setup-0.6:
+    - Package latest network-setup script from github
+      (now really supporting VLANs).
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 29 Dec 2017 13:14:30 +0100
+
+bms-network-setup (0.5-1) stable; urgency=low
+
+  * bms-network-setup-0.5:
+    - Support VLANs on RHEL. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 22 Dec 2017 10:41:43 +0100
+
+bms-network-setup (0.4-1) stable; urgency=low
+
+  * bms-network-setup-0.4:
+    - Support VLANs on SUSE. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Fri, 22 Dec 2017 10:26:10 +0100
+
+bms-network-setup (0.3-5) stable; urgency=low
+
+  * For ifcfg-bond0, need to use MACADDR, HWADDR for eth* (RHEL7). 
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu, 21 Dec 2017 16:34:40 +0100
+
+bms-network-setup (0.3-4) stable; urgency=low
+
+  * use HWADDR instead of MACADDR in ifcfg-* on RHEL7. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu, 21 Dec 2017 15:53:08 +0100
+
+bms-network-setup (0.3-3) stable; urgency=low
+
+  * Take iface down before renaming. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu, 21 Dec 2017 14:54:29 +0100
+
+bms-network-setup (0.3-2) stable; urgency=low
+
+  * Rename NIC rather than ifcfg-* on RHEL7. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu, 21 Dec 2017 11:56:20 +0100
+
+bms-network-setup (0.3-1) stable; urgency=low
+
+  * bms-network-setup-0.3:
+    - Determine NIC names from MAC address (needed for RHEL7).
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu, 21 Dec 2017 11:35:17 +0100
+
+bms-network-setup (0.2-5) stable; urgency=low
+
+  * Use MAC instead of names to identify NICs in RHEL. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Thu, 21 Dec 2017 10:57:57 +0100
+
+bms-network-setup (0.2-4) stable; urgency=low
+
+  * Use cloud-config.target on RHEL7, not cloud-init.target.
+
+ -- Kurt Garloff <kurt@garloff.de>  Sun, 10 Dec 2017 21:06:50 +0100
+
+bms-network-setup (0.2-3) stable; urgency=low
+
+  * Enable NM_CONTROLLED=yes on RHEL. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Sun, 10 Dec 2017 10:06:25 +0100
+
+bms-network-setup (0.2-2) stable; urgency=low
+
+  * Split arguments into list in subprocess.call(). 
+
+ -- Kurt Garloff <kurt@garloff.de>  Sat,  9 Dec 2017 22:24:49 +0100
+
+bms-network-setup (0.2-1) stable; urgency=low
+
+  * Update to bms-network-setup-0.2: 
+    - Python3 compatibility
+    - Exit if no bond is configured via network_data.json
+
+ -- Kurt Garloff <kurt@garloff.de>  Sat,  9 Dec 2017 19:08:22 +0100
+
+bms-network-setup (0.1-1) stable; urgency=low
+
+  * bms-network-setup-0.1: Initial creation of package:
+    Minimalistic setup of ifcfg-* files based on network_data.json.
+    This is needed to bootstrap bare metal on OTC. 
+
+ -- Kurt Garloff <kurt@garloff.de>  Sat,  9 Dec 2017 13:45:05 +0100
+
--- bms-network-setup-1.9.orig/debian/compat
+++ bms-network-setup-1.9/debian/compat
@@ -0,0 +1 @@
+7
--- bms-network-setup-1.9.orig/debian/control
+++ bms-network-setup-1.9/debian/control
@@ -0,0 +1,16 @@
+Source: bms-network-setup
+Section: SystemUtilities
+Priority: optional
+Maintainer: Kurt Garloff <kurt@garloff.de>
+Standards-Version: 3.9.4
+Build-Depends: debhelper (>=9), bzip2
+
+Package: bms-network-setup
+Architecture: any
+Depends: python3, ${shlibs:Depends}
+Description:
+ Simple creation of network interface config from ConfigDrive DataSource
+ This is a much simpler version of Huawei's bms-network-config, which can do a
+ lot more.  This script is simple and does nothing more than writing out ifcfg-*
+ files from the network_data.json configuration.  It is designed to coexist with
+ cloud-init.
--- bms-network-setup-1.9.orig/debian/postinst
+++ bms-network-setup-1.9/debian/postinst
@@ -0,0 +1,9 @@
+if test -e /usr/lib/systemd/system/bms-network-setup.service; then	
+    if test $(grep ^ID= /etc/os-release | grep debian); then 
+      sed -i 's/^WantedBy=.*/WantedBy=network-online.target/' /usr/lib/systemd/system/bms-network-setup.service
+    fi
+    systemctl enable bms-network-setup
+else
+	update-rc.d bms-network-setup defaults
+fi
+
--- bms-network-setup-1.9.orig/debian/postrm
+++ bms-network-setup-1.9/debian/postrm
@@ -0,0 +1,3 @@
+if [ "$1" = purge ]; then
+  update-rc.d bms-network-setup remove
+fi
--- bms-network-setup-1.9.orig/debian/rules
+++ bms-network-setup-1.9/debian/rules
@@ -0,0 +1,102 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# This file is public domain software, originally written by Joey Hess. 
+#
+# This version is for packages that are architecture dependent.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
+LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
+CFLAGS+=$(HARDENING_CFLAGS)
+LDFLAGS+=$(HARDENING_LDFLAGS)
+DESTDIR=$(CURDIR)/debian/bms-network-setup
+INSTDIR=/opt/otc/bms-setup
+
+#%:
+#	dh $@
+
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add here commands to compile the package.
+	#./autogen.sh
+	#./configure --enable-shared
+
+	#$(MAKE) check
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	pwd
+
+	# Add here commands to clean up after the build process.
+	#cd uvp-monitor && $(MAKE) clean
+	#$(MAKE) distclean
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_prep
+	dh_installdirs
+	# Add here commands to install the package into debian/<packagename>
+	#$(MAKE) DESTDIR=`pwd`/debian/`dh_listpackages` PREFIX=/usr install
+
+	install -d $(DESTDIR)$(INSTDIR)
+	install -m 0755 bms-network-setup.py $(DESTDIR)$(INSTDIR)
+	install -m 0755 bms-setup.sh $(DESTDIR)$(INSTDIR)
+	install -m 0755 bms-disable-cloudinit-network $(DESTDIR)$(INSTDIR)
+	if grep jessie /etc/debian_version >/dev/null 2>&1; then echo "SYSVINIT"; install -d $(DESTDIR)/etc/init.d && install -m 0755 bms-network-setup $(DESTDIR)/etc/init.d; else echo "SYSTEMD"; install -d $(DESTDIR)/usr/lib/systemd/system && install -m 0644 bms-network-setup.service $(DESTDIR)/usr/lib/systemd/system/; fi
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+#	dh_install
+#	dh_installmenu
+#	dh_installdebconf	
+#	dh_installlogrotate
+#	dh_installemacsen
+#	dh_installcatalogs
+#	dh_installpam
+#	dh_installmime
+#	dh_installinit
+#	dh_installcron
+#	dh_installinfo
+#	dh_installwm
+#	dh_installudev
+#	dh_lintian
+#	dh_bugfiles
+#	dh_undocumented
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+#	dh_perl
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
