I found a migration script on the system located under /usr/share/netplan/netplan/cli/commands/migrate.py (Also available under
https://github.com/canonical/netplan...nds/migrate.py). This script, when executed, runs smoothly for the network interface (/etc/network/interfaces) with the non-bond interface, for interfaces with network bonding, it terminates with the following error.
root@myserver:~# ENABLE_TEST_COMMANDS=1 netplan migrate
Unsupported method manual
root@myserver:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
# Interfaces bonding
auto eth0
iface eth0 inet manual
bond-master bond0
auto eth1
iface eth1 inet manual
bond-master bond0
auto bond0
iface bond0 inet static
address 10.0.0.132
netmask 255.255.255.0
gateway 10.0.0.1
dns-nameservers 8.8.8.8 4.2.2.2
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
bond-slaves none