From 0acc4dafdd1130fab7282dd91aa78745f5751801 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 25 Jan 2019 04:23:38 +0100 Subject: [PATCH] MSO: Various small fixes (#51314) * mso_bd: Allow adding subnets on creation * Fix example --- lib/ansible/modules/network/aci/mso_schema_template_bd.py | 3 +-- lib/ansible/modules/network/aci/mso_schema_template_vrf.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/ansible/modules/network/aci/mso_schema_template_bd.py b/lib/ansible/modules/network/aci/mso_schema_template_bd.py index 558905a137..dddc6f5d49 100644 --- a/lib/ansible/modules/network/aci/mso_schema_template_bd.py +++ b/lib/ansible/modules/network/aci/mso_schema_template_bd.py @@ -251,8 +251,7 @@ def main(): l2UnknownUnicast=layer2_unknown_unicast, l2Stretch=layer2_stretch, l3MCast=layer3_multicast, - # FIXME - subnets=[], + subnets=subnets, vrfRef=vrf_ref, ) diff --git a/lib/ansible/modules/network/aci/mso_schema_template_vrf.py b/lib/ansible/modules/network/aci/mso_schema_template_vrf.py index 846b049ace..e571b3ad2a 100644 --- a/lib/ansible/modules/network/aci/mso_schema_template_vrf.py +++ b/lib/ansible/modules/network/aci/mso_schema_template_vrf.py @@ -88,8 +88,8 @@ EXAMPLES = r''' delegate_to: localhost register: query_result -- name: Query all BDs - mso_schema_template_bd: +- name: Query all VRFs + mso_schema_template_vrf: host: mso_host username: admin password: SomeSecretPassword