Merge "Add network commissioning script"
diff --git a/README.rst b/README.rst
index 2fd06cb..f6c1f9f 100644
--- a/README.rst
+++ b/README.rst
@@ -110,7 +110,7 @@
enabled: true
machines:
machine1:
- interfaces:
+ interface:
mac: "11:22:33:44:55:66"
power_parameters:
power_type: ipmi
@@ -119,6 +119,8 @@
power_password: bmc_password
#Optional (for legacy HW)
power_driver: LAN
+ # Used in case of power_type: virsh
+ power_id: my_libvirt_vm_name
distro_series: xenial
hwe_kernel: hwe-16.04
devices:
diff --git a/_modules/maas.py b/_modules/maas.py
index cbe223f..e279b70 100644
--- a/_modules/maas.py
+++ b/_modules/maas.py
@@ -379,6 +379,8 @@
if 'power_password' in power_data:
data['power_parameters_power_pass'] = \
power_data['power_password']
+ if 'power_id' in power_data:
+ data['power_parameters_power_id'] = power_data['power_id']
return data
def update(self, new, old):