diff --git a/lib/ansible/module_utils/network/junos/config/interfaces/interfaces.py b/lib/ansible/module_utils/network/junos/config/interfaces/interfaces.py
index 9d80a58436..1c6bfd2c76 100644
--- a/lib/ansible/module_utils/network/junos/config/interfaces/interfaces.py
+++ b/lib/ansible/module_utils/network/junos/config/interfaces/interfaces.py
@@ -76,7 +76,7 @@ class Interfaces(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_interfaces_facts = self.get_interfaces_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/l2_interfaces/l2_interfaces.py b/lib/ansible/module_utils/network/junos/config/l2_interfaces/l2_interfaces.py
index 3eb2e11711..9537e28406 100644
--- a/lib/ansible/module_utils/network/junos/config/l2_interfaces/l2_interfaces.py
+++ b/lib/ansible/module_utils/network/junos/config/l2_interfaces/l2_interfaces.py
@@ -77,7 +77,7 @@ class L2_interfaces(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_l2_interfaces_facts = self.get_l2_interfaces_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/l3_interfaces/l3_interfaces.py b/lib/ansible/module_utils/network/junos/config/l3_interfaces/l3_interfaces.py
index 2b740def00..06db84bd23 100644
--- a/lib/ansible/module_utils/network/junos/config/l3_interfaces/l3_interfaces.py
+++ b/lib/ansible/module_utils/network/junos/config/l3_interfaces/l3_interfaces.py
@@ -81,7 +81,7 @@ class L3_interfaces(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_interfaces_facts = self.get_l3_interfaces_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/lacp/lacp.py b/lib/ansible/module_utils/network/junos/config/lacp/lacp.py
index a5562a0e77..875f63880a 100644
--- a/lib/ansible/module_utils/network/junos/config/lacp/lacp.py
+++ b/lib/ansible/module_utils/network/junos/config/lacp/lacp.py
@@ -75,7 +75,7 @@ class Lacp(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_lacp_facts = self.get_lacp_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/lacp_interfaces/lacp_interfaces.py b/lib/ansible/module_utils/network/junos/config/lacp_interfaces/lacp_interfaces.py
index 00d0a8af26..62be176df3 100644
--- a/lib/ansible/module_utils/network/junos/config/lacp_interfaces/lacp_interfaces.py
+++ b/lib/ansible/module_utils/network/junos/config/lacp_interfaces/lacp_interfaces.py
@@ -73,7 +73,7 @@ class Lacp_interfaces(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_lacp_interfaces_facts = self.get_lacp_interfaces_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/lag_interfaces/lag_interfaces.py b/lib/ansible/module_utils/network/junos/config/lag_interfaces/lag_interfaces.py
index 16d69f569c..3d8fc62941 100644
--- a/lib/ansible/module_utils/network/junos/config/lag_interfaces/lag_interfaces.py
+++ b/lib/ansible/module_utils/network/junos/config/lag_interfaces/lag_interfaces.py
@@ -75,7 +75,7 @@ class Lag_interfaces(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_lag_interfaces_facts = self.get_lag_interfaces_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/lldp_global/lldp_global.py b/lib/ansible/module_utils/network/junos/config/lldp_global/lldp_global.py
index 3b33a66728..57c8b5c627 100644
--- a/lib/ansible/module_utils/network/junos/config/lldp_global/lldp_global.py
+++ b/lib/ansible/module_utils/network/junos/config/lldp_global/lldp_global.py
@@ -73,7 +73,7 @@ class Lldp_global(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_lldp_global_facts = self.get_lldp_global_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/lldp_interfaces/lldp_interfaces.py b/lib/ansible/module_utils/network/junos/config/lldp_interfaces/lldp_interfaces.py
index 008788cb66..4cbb0faccf 100644
--- a/lib/ansible/module_utils/network/junos/config/lldp_interfaces/lldp_interfaces.py
+++ b/lib/ansible/module_utils/network/junos/config/lldp_interfaces/lldp_interfaces.py
@@ -74,7 +74,7 @@ class Lldp_interfaces(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_lldp_interfaces_facts = self.get_lldp_interfaces_facts()
diff --git a/lib/ansible/module_utils/network/junos/config/vlans/vlans.py b/lib/ansible/module_utils/network/junos/config/vlans/vlans.py
index 7cca4fa6af..70aa5f72fc 100644
--- a/lib/ansible/module_utils/network/junos/config/vlans/vlans.py
+++ b/lib/ansible/module_utils/network/junos/config/vlans/vlans.py
@@ -92,7 +92,7 @@ class Vlans(ConfigBase):
if self._module._diff:
result['diff'] = {'prepared': diff}
- result['xml'] = config_xmls
+ result['commands'] = config_xmls
changed_vlans_facts = self.get_vlans_facts()
diff --git a/test/integration/targets/junos_l3_interfaces/tests/netconf/junos_l3_interfaces.yml b/test/integration/targets/junos_l3_interfaces/tests/netconf/junos_l3_interfaces.yml
index 7a717cf551..f74691d338 100644
--- a/test/integration/targets/junos_l3_interfaces/tests/netconf/junos_l3_interfaces.yml
+++ b/test/integration/targets/junos_l3_interfaces/tests/netconf/junos_l3_interfaces.yml
@@ -20,8 +20,8 @@
- assert:
that:
- result is changed
- - "'192.168.100.1/24' in result.xml[0]"
- - "'10.200.16.20/24' in result.xml[0]"
+ - "'192.168.100.1/24' in result.commands[0]"
+ - "'10.200.16.20/24' in result.commands[0]"
- "result.after[0].name == 'ge-1/0/0'"
- "result.after[0].ipv4[0]['address'] == '192.168.100.1/24'"
- "result.after[0].ipv4[1]['address'] == '10.200.16.20/24'"
@@ -61,8 +61,8 @@
- assert:
that:
- result is changed
- - "'100.64.0.1/10' in result.xml[0]"
- - "'100.64.0.2/10' in result.xml[0]"
+ - "'100.64.0.1/10' in result.commands[0]"
+ - "'100.64.0.2/10' in result.commands[0]"
- "result.after[0].name == 'ge-1/0/0'"
- "result.after[0].ipv4[0]['address'] == '192.168.100.1/24'"
- "result.after[0].ipv4[1]['address'] == '10.200.16.20/24'"
@@ -79,7 +79,7 @@
- assert:
that:
- result is changed
- - "'ge-2/0/00' in result.xml[0]"
+ - "'ge-2/0/00' in result.commands[0]"
- name: Override all config
junos_l3_interfaces:
@@ -96,4 +96,4 @@
- assert:
that:
- result is changed
- - "'fxp00' in result.xml[0]"
+ - "'fxp00' in result.commands[0]"