diff --git a/lib/ansible/modules/network/aci/aci_fabric_node.py b/lib/ansible/modules/network/aci/aci_fabric_node.py index bdaa0561485..8cc1ae31eb3 100644 --- a/lib/ansible/modules/network/aci/aci_fabric_node.py +++ b/lib/ansible/modules/network/aci/aci_fabric_node.py @@ -57,18 +57,31 @@ extends_documentation_fragment: aci ''' EXAMPLES = r''' -- name: Adding new Fabric Node Member (Spine) +- name: Add fabric node aci_fabric_node: host: apic - username: someusername - password: somepassword - pod_id: 5 - serial: someserial123 - node_id: 112 - switch: someswitchname - description: somedescription - role: spine + username: admin + password: SomeSecretPassword + serial: ansible_test + node_id: 105 + switch: test state: present + +- name: Remove fabric node + aci_fabric_node: + host: apic + username: admin + password: SomeSecretPassword + serial: ansible_test + node_id: 105 + state: absent + +- name: Query fabric nodes + aci_fabric_node: + host: apic + username: admin + password: SomeSecretPassword + state: query ''' RETURN = r''' diff --git a/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py b/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py index 2cd8683bd63..d5172ad72ac 100644 --- a/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py +++ b/lib/ansible/modules/network/aci/aci_static_binding_to_epg.py @@ -103,7 +103,7 @@ extends_documentation_fragment: aci ''' EXAMPLES = r''' -- name: Deploy Static Path for EPG +- name: Deploy Static Path binding for given EPG aci_static_binding_to_epg: host: apic username: admin @@ -119,6 +119,34 @@ EXAMPLES = r''' leafs: 101 interface: '1/7' state: present + +- name: Remove Static Path binding for given EPG + aci_static_binding_to_epg: + host: apic + username: admin + password: SomeSecretPassword + tenant: anstest + ap: anstest + epg: anstest + interface_type: switch_port + pod: 1 + leafs: 101 + interface: '1/7' + state: absent + +- name: Get specific Static Path binding for given EPG + aci_static_binding_to_epg: + host: apic + username: admin + password: SomeSecretPassword + tenant: anstest + ap: anstest + epg: anstest + interface_type: switch_port + pod: 1 + leafs: 101 + interface: '1/7' + state: query ''' RETURN = r''' diff --git a/lib/ansible/modules/network/aci/aci_switch_policy_vpc_protection_group.py b/lib/ansible/modules/network/aci/aci_switch_policy_vpc_protection_group.py index 081da4e0193..c4e55691765 100644 --- a/lib/ansible/modules/network/aci/aci_switch_policy_vpc_protection_group.py +++ b/lib/ansible/modules/network/aci/aci_switch_policy_vpc_protection_group.py @@ -56,14 +56,13 @@ extends_documentation_fragment: aci ''' EXAMPLES = r''' -- name: Add Explicit vPC Protection Group +- name: Add vPC Protection Group aci_switch_policy_vpc_protection_group: host: apic username: admin password: SomeSecretPassword - protection_group: protectiongroupname + protection_group: ansible_test protection_group_id: 6 - vpc_domain_policy: vpcdomainpolicyname switch_1_id: 3811 switch_2_id: 3812 state: present @@ -73,8 +72,23 @@ EXAMPLES = r''' host: apic username: admin password: SomeSecretPassword - protection_group: protectiongroupname + protection_group: ansible_test state: absent + +- name: Query vPC Protection Groups + aci_switch_policy_vpc_protection_group: + host: apic + username: admin + password: SomeSecretPassword + state: query + +- name: Query our vPC Protection Group + aci_switch_policy_vpc_protection_group: + host: apic + username: admin + password: SomeSecretPassword + protection_group: ansible_test + state: query ''' RETURN = r'''