├── README.md ├── configuration-python ├── __init__.py ├── lab │ ├── __init__.py │ ├── labUpgradingTheCatalogSoftwareVersion.yaml │ ├── labConfiguringMpBgpRouteReflector.yaml │ ├── labUpgradingTheApicControllerSoftwareVersion.yaml │ ├── lab2CreateTenant.yaml │ ├── labConfiguringDhcpServerPolicyForTheApicInfrastructure.yaml │ ├── lab1FabricDiscovery.yaml │ ├── labConfiguringDnsServerPolicy.yaml │ ├── labUpgradingTheLeafAndSpineSwitchSoftwareVersion.yaml │ ├── labCreatingOspfExternalRoutedNetworkForManagementTenant.yaml │ ├── labConfiguringLocalUser.yaml │ ├── labConfiguringLayer2ManagementConnectivity.yaml │ ├── labConfiguringLayer3ManagementConnectivity.yaml │ ├── labConfiguringOutOfBandManagementAccess.yaml │ ├── lab5IntegratingWithVMware.yaml │ ├── labConfigureInterfacePcAndVpc.yaml │ ├── labSettingUpAnAccessPolicyForBladeServer.yaml │ ├── lab3BuildingPolicyFiltersAndContracts.yaml │ ├── labCreatingAvCenterDomainProfile.yaml │ ├── lab1FabricDiscovery.py │ ├── labScript.py │ ├── lab7Layer3External.yaml │ ├── labConfiguringInBandManagementAccess.yaml │ ├── labConfiguringDnsServerPolicy.py │ ├── labUpgradingTheCatalogSoftwareVersion.py │ ├── lab4CreateApplication.yaml │ ├── labCreatingAvCenterAndAvShieldDomainProfile.yaml │ ├── labUpgradingTheApicControllerSoftwareVersion.py │ ├── labConfiguringDhcpServerPolicyForTheApicInfrastructure.py │ ├── lab2CreateTenant.py │ ├── labConfiguringLocalUser.py │ ├── labUpgradingTheLeafAndSpineSwitchSoftwareVersion.py │ ├── labConfiguringMpBgpRouteReflector.py │ ├── lab3BuildingPolicyFiltersAndContracts.py │ ├── lab4CreateApplication.py │ ├── labConfiguringLayer2ManagementConnectivity.py │ └── labConfiguringOutOfBandManagementAccess.py ├── generic_code │ ├── __init__.py │ ├── apicPython │ │ ├── __init__.py │ │ ├── changeClusterSize.yaml │ │ ├── createTenant.yaml │ │ ├── selectPodPolicy.yaml │ │ ├── addUserDomain.yaml │ │ ├── createApplication.yaml │ │ ├── setAutonomousSystemNumber.yaml │ │ ├── addSecurityDomain.yaml │ │ ├── changeCatalogFirmwarePolicy.yaml │ │ ├── addFabricNode.yaml │ │ ├── associateL3OutsideNetworkToBD.yaml │ │ ├── upgradeControllerFirmwarePolicy.yaml │ │ ├── createBgpRouteReflector.yaml │ │ ├── createSubnet.yaml │ │ ├── createVxlanPool.yaml │ │ ├── addMgmtProvidedOutOfBandContract.yaml │ │ ├── createMulticastAddressBlock.yaml │ │ ├── createVlanPool.yaml │ │ ├── createCdpInterfacePolicy.yaml │ │ ├── chooseRoleForUser.yaml │ │ ├── connectEpgContract.yaml │ │ ├── createBridgeDomain.yaml │ │ ├── createPhysicalDomain.yaml │ │ ├── createInterfaceProfile.yaml │ │ ├── createNodes.yaml │ │ ├── createLldpInterfacePolicy.yaml │ │ ├── createNodesAndInterfacesProfile.yaml │ │ ├── createOutsideFirmwareSource.yaml │ │ ├── createOutOfBandContract.yaml │ │ ├── createLinkLevelPolicy.yaml │ │ ├── createVcenterDomain.yaml │ │ ├── createExternalNetwork.yaml │ │ ├── createVcenterCredential.yaml │ │ ├── createDhcpRelayLabel.yaml │ │ ├── createRadiusProvider.yaml │ │ ├── createFirmwareGroup.yaml │ │ ├── createRoutedOutside.yaml │ │ ├── createMaintenanceGroup.yaml │ │ ├── setDefaultSettingForPrivateNetwork.yaml │ │ ├── addVmmDomainAssociation.yaml │ │ ├── createPrivateNetwork.yaml │ │ ├── createExternalManagementEntityInstance.yaml │ │ ├── createRoutedInterfaceProfile.yaml │ │ ├── createAttachableAccessEntityprofile.yaml │ │ ├── createPodPolicyGroup.yaml │ │ ├── createStaticRoute.yaml │ │ ├── createL3EpgProviderOrConsumerContract.yaml │ │ ├── createVcenterController.yaml │ │ ├── createLocalUser.yaml │ │ ├── configureInterfacePcAndVpc.yaml │ │ ├── createLacpPolicy.yaml │ │ ├── createDhcpRelayPolicy.yaml │ │ ├── createContract.yaml │ │ ├── createTenant.py │ │ ├── createVshieldController.yaml │ │ ├── createAccessPortPolicyGroup.yaml │ │ ├── createDnsProfile.yaml │ │ ├── createNodeManagementAddressApic.yaml │ │ ├── createNodeManagementAddressSwitchInb.yaml │ │ ├── createFilter.yaml │ │ ├── createNodeManagementAddressSwitchOob.yaml │ │ ├── configureInBandEpgDefault.yaml │ │ ├── labScript.py │ │ ├── changeCatalogFirmwarePolicy.py │ │ ├── addSecurityDomain.py │ │ ├── createApplicationEpg.yaml │ │ ├── createBgpRouteReflector.py │ │ ├── createPcInterfacePolicyGroup.yaml │ │ ├── selectPodPolicy.py │ │ ├── addUserDomain.py │ │ ├── setAutonomousSystemNumber.py │ │ ├── changeClusterSize.py │ │ ├── createVxlanPool.py │ │ ├── addFabricNode.py │ │ ├── associateL3OutsideNetworkToBD.py │ │ ├── createApplication.py │ │ ├── createSubnet.py │ │ ├── upgradeControllerFirmwarePolicy.py │ │ ├── addMgmtProvidedOutOfBandContract.py │ │ ├── createMulticastAddressBlock.py │ │ ├── createCdpInterfacePolicy.py │ │ ├── createVlanPool.py │ │ ├── createLldpInterfacePolicy.py │ │ ├── createPhysicalDomain.py │ │ ├── createBridgeDomain.py │ │ ├── createNodes.py │ │ ├── createNodesAndInterfacesProfile.py │ │ ├── chooseRoleForUser.py │ │ ├── createInterfaceProfile.py │ │ ├── createVcenterCredential.py │ │ ├── createOutsideFirmwareSource.py │ │ ├── createOutOfBandContract.py │ │ ├── connectEpgContract.py │ │ ├── createStaticRoute.py │ │ ├── createVcenterDomain.py │ │ ├── createFirmwareGroup.py │ │ ├── createExternalNetwork.py │ │ ├── createRoutedOutside.py │ │ ├── createDhcpRelayLabel.py │ │ ├── createPrivateNetwork.py │ │ └── addVmmDomainAssociation.py │ ├── setup.py │ └── README.md ├── template.py └── README.md ├── arya └── README.rst ├── dom-POD2-VMM.xml ├── BD-Main-BD1.xml ├── .gitignore └── BD-Main-BD.xml /README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /configuration-python/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'bonhuan' 2 | -------------------------------------------------------------------------------- /configuration-python/lab/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'bonhuan' 2 | -------------------------------------------------------------------------------- /configuration-python/generic_code/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'bonhuan' 2 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/__init__.py: -------------------------------------------------------------------------------- 1 | __author__ = 'bonhuan' 2 | -------------------------------------------------------------------------------- /arya/README.rst: -------------------------------------------------------------------------------- 1 | Arya has moved to a repo of it's own: 2 | 3 | https://github.com/datacenter/arya 4 | -------------------------------------------------------------------------------- /dom-POD2-VMM.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/changeClusterSize.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | size: 1 -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createTenant.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA11 6 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/selectPodPolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | selected_pod_policy_group: policyA -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/addUserDomain.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | local_user: abc 6 | user_domain: mgmt 7 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createApplication.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA 6 | application: 3Tier -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/setAutonomousSystemNumber.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | autonomous_system_number: 1 -------------------------------------------------------------------------------- /configuration-python/lab/labUpgradingTheCatalogSoftwareVersion.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | target_firmware_policy: catalog-1.0(1e) -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/addSecurityDomain.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA 6 | security_domain: mgmt -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/changeCatalogFirmwarePolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | target_firmware_policy: catalog-1.0(1e) -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/addFabricNode.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | pod_id: '1' 6 | serial_number: 'TEP-1-103' 7 | node_id: '103' 8 | node_name: Spine1 -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/associateL3OutsideNetworkToBD.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA 6 | routed_outside: L3-Out 7 | bridge_domain: BD1 8 | -------------------------------------------------------------------------------- /configuration-python/lab/labConfiguringMpBgpRouteReflector.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | autonomous_system_number: 1 6 | reflector_ids: 7 | - 201 8 | - 202 9 | policy_group: tenantA_policy 10 | optional_args: 11 | bgp_policy: default 12 | 13 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/upgradeControllerFirmwarePolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | optional_args: 9 | ignore_compatibility: [ 'true' | 'false' ] 10 | target_firmware_version: -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createBgpRouteReflector.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # autonomous_system_number: 9 | # reflector_id: 10 | 11 | autonomous_system_number: 1 12 | reflector_id: 201 13 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createSubnet.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # bridge_domain: 10 | # subnet: 11 | 12 | tenant: mgmt 13 | bridge_domain: inbbb 14 | subnet: 2.2.2.2/24 -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createVxlanPool.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # vxlan_name: 9 | # range_from: 5000)> 10 | # range_to: 5000)> 11 | 12 | vxlan_name: inband 13 | range_from: 5010 14 | range_to: 5200 15 | -------------------------------------------------------------------------------- /configuration-python/lab/labUpgradingTheApicControllerSoftwareVersion.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | firmware_source: 6 | name: apic_image 7 | optional_args: 8 | protocol: http 9 | url: http://172.31.216.100/aci-apic-dk9.1.0.0.72.iso 10 | upgrade_controller_firmware_policy: 11 | ignore_compatibility: 'true' 12 | target_firmware_version: vvv -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/addMgmtProvidedOutOfBandContract.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: mgmt 6 | 7 | # Usage: 8 | # --------------------------------- 9 | # contract: 10 | # optional_args: 11 | # prio: [level1 | level2 | level3] 12 | 13 | contract: oob-default 14 | optional_args: 15 | prio: unspecified -------------------------------------------------------------------------------- /configuration-python/lab/lab2CreateTenant.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA 6 | # Specify all the security domains 7 | security_domains: 8 | - all 9 | private_network: tenantA_VRF 10 | # Specify all each bridge domain. subnet_ip is optional. 11 | bridge_domains: 12 | - name: BD1 13 | subnet_ip: 10.10.10.1/24 14 | - name: BD2 15 | subnet_ip: 20.20.20.1/24 16 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createMulticastAddressBlock.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # multicast: 9 | # ip_range_from: 10 | # ip_range_to: 11 | 12 | multicast: ml 13 | ip_range_from: 224.1.2.3 14 | ip_range_to: 224.1.2.10 15 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createVlanPool.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # vlan_name: 9 | # vlan_mode: [ dynamic | static ] 10 | # range_from: 11 | # range_to: 12 | 13 | vlan_name: inband 14 | vlan_mode: static 15 | range_from: '10' 16 | range_to: '11' 17 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createCdpInterfacePolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # cdp_interface_policy: 9 | # optional_args: 10 | # admin_state: [ enabled | disabled ] 11 | 12 | cdp_interface_policy: cdp 13 | optional_args: 14 | admin_state: disabled 15 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/chooseRoleForUser.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # --------------------------------- 8 | # user_name: 9 | # security_domain: 10 | # role: 11 | # role_type: [readPriv | writePriv] 12 | 13 | user_name: abc 14 | security_domain: all 15 | role: aaa 16 | role_type: writePriv 17 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/connectEpgContract.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA 6 | 7 | # Usage: 8 | # --------------------------------- 9 | # application: 10 | # epg: 11 | # contract_name: 12 | # contract_type: [ provided | consumed ] 13 | 14 | application: 3Tier 15 | epg: oo 16 | contract_name: Web_Con 17 | contract_type: consumed 18 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createBridgeDomain.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # bridge_domain: 10 | # subnet_ip: 11 | # private_network: 12 | 13 | tenant: tenantA 14 | bridge_domain: BD1 15 | subnet_ip: 10.10.10.1/24 16 | private_network: tenantA_VRF -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createPhysicalDomain.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # physical_domain: 9 | # optional_args: 10 | # vlan_pool: 11 | # vlan_mode: [ dynamic | static ] 12 | 13 | physical_domain: phys 14 | optional_args: 15 | vlan_pool: vlan-10 16 | vlan_mode: static 17 | -------------------------------------------------------------------------------- /configuration-python/lab/labConfiguringDhcpServerPolicyForTheApicInfrastructure.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: infra 6 | bridge_domain: default 7 | dhcp_relay_policy: DhcpRelayP 8 | dhcp_relay_label_scope: tenant 9 | optional_args: 10 | providers: 11 | - epg_type: application_epg 12 | provider_detail: 13 | tenant: infra 14 | detail1: access 15 | detail2: default 16 | dhcp_server_address: 10.0.0.1 17 | -------------------------------------------------------------------------------- /configuration-python/lab/lab1FabricDiscovery.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | # Please specify each fabric node. 6 | fabric_nodes: 7 | - serial_number: 'TEP-1-101' 8 | node_id: '101' 9 | node_name: Leaf1 10 | - serial_number: 'TEP-1-102' 11 | node_id: '102' 12 | node_name: Leaf2 13 | - serial_number: 'TEP-1-103' 14 | node_id: '103' 15 | node_name: Spine1 16 | - serial_number: 'TEP-1-104' 17 | node_id: '104' 18 | node_name: Spine2 -------------------------------------------------------------------------------- /configuration-python/lab/labConfiguringDnsServerPolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: mgmt 6 | private_network: oob 7 | dns_profile: default 8 | optional_args: 9 | management_epg: out_of_band 10 | dns_providers: 11 | - address: 172.21.157.5 12 | is_preferred: true 13 | - address: 172.21.157.6 14 | is_preferred: false 15 | dns_domains: 16 | - name: cisco.com 17 | is_default: true 18 | description: cccc 19 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createInterfaceProfile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # node_profile: 11 | # interface_profile: 12 | 13 | tenant: tenantA 14 | routed_outside: L3-Out 15 | node_profile: border-leaf 16 | interface_profile: L3-OSPF-Leaf2 17 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createNodes.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # node_profile: 11 | # leaf_id: 12 | # router_id: 13 | 14 | tenant: tenantA 15 | routed_outside: L3-Out 16 | node_profile: border-leaf 17 | leaf_id: 102 18 | router_id: 1.0.0.2 19 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createLldpInterfacePolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # lldp_interface_policy: 9 | # optional_args: 10 | # receive_state: [ enabled | disabled ] 11 | # transmit_state: [ enabled | disabled ] 12 | 13 | lldp_interface_policy: lldp_policy 14 | optional_args: 15 | receive_state: disabled 16 | transmit_state: disabled 17 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createNodesAndInterfacesProfile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # node_profile: 11 | # optional_args: 12 | # target_dscp: 13 | 14 | tenant: tenantA 15 | routed_outside: L3-Out 16 | node_profile: border-leaf 17 | optional_args: 18 | target_dscp: 25 19 | 20 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createOutsideFirmwareSource.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # source: 9 | # optional_args: 10 | # url: 11 | # protocol: [ scp | http ] 12 | # source_user: 13 | # source_password: 14 | 15 | source: apic_image 16 | optional_args: 17 | protocol: http 18 | url: http://172.31.216.100/aci-apic-dk9.1.0.0.72.iso 19 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createOutOfBandContract.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # contract: 10 | # optional_args: 11 | # scope: [ application-profile | context | global | tenant ] 12 | # prio: [ layer2 | layer3 | physical | vcenter ] 13 | 14 | tenant: mgmt 15 | contract: oob-default 16 | optional_args: 17 | scope: context 18 | prio: unspecified 19 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createLinkLevelPolicy.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # link_level_policy: 9 | # optional_args: 10 | # atuo_negotiation: [ on | off ] 11 | # speed: [ 100M | 1G | 10G | 40G ] 12 | # link_debounce_interval: 13 | 14 | link_level_policy: llpA 15 | optional_args: 16 | atuo_negotiation: on 17 | speed: 1G 18 | link_debounce_interval: 101 19 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createVcenterDomain.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # vmm_provider: ['VMware', 'Microsoft'] 10 | # vmm_domain: 11 | # optional_args: 12 | # vlan: 13 | # vlan_mode: [ dynamic | static ] 14 | tenant: tenantA 15 | vmm_provider: VMware 16 | vmm_domain: tenantA_vCenter 17 | optional_args: 18 | vlan: vlan_pool 19 | vlan_mode: dynamic 20 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createExternalNetwork.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # external_network: 11 | # optional_args: 12 | # prio: [ level1 | level2 | level3 | unspecified ] 13 | # subnet_ip: 14 | 15 | tenant: tenantA 16 | routed_outside: L3-Out 17 | external_network: L3-Out-EPG 18 | optional_args: 19 | prio: level1 20 | subnet_ip: 0.0.0.0/0 -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createVcenterCredential.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # application: 10 | # vmm_provider: 11 | # vmm_domain: 12 | # profile: 13 | # vmm_user: 14 | # vmm_password: 15 | 16 | tenant: tenantA 17 | application: threeTier 18 | vmm_provider: VMware 19 | vmm_domain: vCenterA 20 | profile: admin 21 | vmm_user: student 22 | vmm_password: P@ssword 23 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createDhcpRelayLabel.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # bridge_domain: 10 | # dhcp_relay_label_name: 11 | # dhcp_relay_label_scope: [ infra | tenant ] 12 | # optional_args: 13 | # dhcp_option_policy: 14 | 15 | tenant: infra 16 | bridge_domain: default 17 | dhcp_relay_label_name: DhcpRelayP 18 | dhcp_relay_label_scope: tenant 19 | optional_args: 20 | dhcp_option_policy: default 21 | 22 | 23 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createRadiusProvider.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # radius_provider: 9 | # optional_args: 10 | # port: 11 | # protocol: 12 | # key: 13 | # timeout: 14 | # retries: 15 | # management_epg: 16 | 17 | radius_provider: radd 18 | optional_args: 19 | port: 1813 20 | protocol: chap 21 | key: 11111 22 | timeout: 56 23 | retries: 3 24 | management_epg: oob -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createFirmwareGroup.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # firmware_group: 9 | # optional_args: 10 | # ignore_compatibility: [true | false] 11 | # target_firmware_version: [Firmware | Versio] 12 | ## Specify . You can have any number of group node. 13 | # group_node_ids: 14 | # - 15 | 16 | firmware_group: firm_group 17 | optional_args: 18 | ignore_compatibility: 'true' 19 | target_firmware_version: vvv 20 | group_node_ids: 21 | - 1003 22 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createRoutedOutside.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # optional_args: 11 | # private_network: 12 | # tags: 13 | # bgp: [ True | False ] 14 | # ospf: [ True | False ] 15 | # ospf_area_id: 16 | 17 | tenant: tenantA 18 | routed_outside: L3-Out 19 | optional_args: 20 | private_network: tenantA_VRF 21 | tags: 'ttt' 22 | bgp: True 23 | ospf: '' 24 | ospf_area_id: 2 25 | -------------------------------------------------------------------------------- /configuration-python/lab/labUpgradingTheLeafAndSpineSwitchSoftwareVersion.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | firmware_source: 6 | name: apic_image 7 | optional_args: 8 | protocol: http 9 | url: http://172.31.216.100/aci-apic-dk9.1.0.0.72.iso 10 | firmware_group: 11 | name: tenantA_group 12 | optional_args: 13 | ignore_compatibility: 'true' 14 | target_firmware_version: vvv 15 | group_node_ids: 16 | - 1003 17 | - 1004 18 | maintenance_group: 19 | name: tenantA_maintenance 20 | optional_args: 21 | run_mode: pauseNever 22 | scheduler: ssss 23 | group_node_ids: 24 | - 1005 25 | - 1006 -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createMaintenanceGroup.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # maintenance_group: 9 | # optional_args: 10 | # run_mode: [ pauseOnlyOnFailures | pauseNever | pauseAlwaysBetweenSets ] 11 | # scheduler: 12 | ## Specify Group Node Id. You can have any number of Group Node Id. 13 | # group_node_ids: 14 | # - 15 | 16 | maintenance_group: maintenanceA 17 | optional_args: 18 | run_mode: pauseNever 19 | scheduler: ssss 20 | group_node_ids: 21 | - 1003 22 | - 1004 23 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/setDefaultSettingForPrivateNetwork.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # private_network: 10 | # optional_args: 11 | # bgp_timer: 12 | # ospf_timer: 13 | # end_point_retention_policy: 14 | # monitoring_policy: 15 | 16 | tenant: tenantA 17 | private_network: tenantA_VRF 18 | optional_args: 19 | bgp_timer: None 20 | ospf_timer: default 21 | end_point_retention_policy: None 22 | monitoring_policy: None 23 | -------------------------------------------------------------------------------- /configuration-python/lab/labCreatingOspfExternalRoutedNetworkForManagementTenant.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: tenantA 6 | routed_outside: 7 | name: RtdOut 8 | optional_args: 9 | private_network: inb 10 | ospf: True 11 | ospf_area_id: 57 12 | node_profile: borderLeaf 13 | select_nodes: 14 | - leaf_id: 101 15 | router_id: 10.10.10.10 16 | - leaf_id: 102 17 | router_id: 10.10.10.11 18 | interface_profile: portProf 19 | select_routed_interfaces: 20 | - leaf_id: 101 21 | eth_num: 1/40 22 | ip_address: 192.168.62.1/24 23 | - leaf_id: 102 24 | eth_num: 1/40 25 | ip_address: 192.168.62.5/24 26 | external_network: extMgmt 27 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/addVmmDomainAssociation.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # --------------------------------- 8 | # tenant: 9 | # application: 10 | # vm_provider: 11 | # vmm_domain: 12 | # epg: 13 | # optional_args: 14 | # deployment_immediacy: [immediate | lazy] 15 | # resolution_immediacy: [immediate | lazy] 16 | 17 | tenant: tenantA 18 | application: 3Tier 19 | vm_provider: VMware 20 | vmm_domain: vm_vCenter 21 | epg: Web_EPG 22 | optional_args: 23 | deployment_immediacy: immediate 24 | resolution_immediacy: immediate 25 | -------------------------------------------------------------------------------- /configuration-python/lab/labConfiguringLocalUser.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | local_user: abc 6 | local_password: ppp12321321 7 | optional_args: 8 | first_name: ho 9 | last_name: shana 10 | phone: 4155333489 11 | email: fwfw@afaf 12 | description: ewfewfewfwef 13 | status: active 14 | expires: 'yes' 15 | expiration_date: '2014-10-21T08:05:40.000Z' 16 | user_domains: 17 | - name: all 18 | roles: 19 | - role_name: ops 20 | role_type: readPriv 21 | - role_name: admin 22 | role_type: readPriv 23 | - name: mgmt 24 | roles: 25 | - role_name: vmm-admin 26 | role_type: writePriv 27 | - role_name: aaa 28 | role_type: writePriv -------------------------------------------------------------------------------- /configuration-python/lab/labConfiguringLayer2ManagementConnectivity.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: mgmt 6 | bridge_domain: 7 | name: vmm 8 | subnet_ip: 192.168.64.254/18 9 | private_network: inb 10 | application: 11 | name: vmm 12 | optional_args: 13 | prio: unspecified 14 | epg: 15 | name: vmmMgmt 16 | optional_args: 17 | bridge_domain: vmm 18 | prio: unspecified 19 | associated_domain_profile: 20 | - domain_profile: inband 21 | statically_link: True 22 | path: 23 | node_id: 101 24 | eth: 1/40 25 | encap: vlan-11 26 | applied_contract: 27 | name: default 28 | type: consumed -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createPrivateNetwork.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # private_network: 10 | # optional_args: 11 | # enforcement_preference: [ enforced | unenforced ] 12 | # bgp_timers: 13 | # ospf_timers: 14 | # monitoring_policy: 15 | # dns_label: 16 | 17 | tenant: tenantA 18 | private_network: tenant_VRF 19 | optional_args: 20 | enforcement_preference: enforced 21 | bgp_timers: bgp 22 | ospf_timers: ospf 23 | monitoring_policy: mon 24 | dns_label: aaa 25 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createExternalManagementEntityInstance.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # profile_name: 10 | # optional_args: 11 | # prio: [ level1 | level2 | level3 | unspecified ] 12 | # consumed_contract: 13 | # name: 14 | # prio: [ level1 | level2 | level3 | unspecified ] 15 | # subnet: 16 | 17 | tenant: mgmt 18 | profile_name: oob-mgmt-ext 19 | optional_args: 20 | prio: unspecified 21 | consumed_contract: 22 | name: oob-default 23 | prio: unspecified 24 | subnet: 4.4.4.0/24 -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createRoutedInterfaceProfile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # node_profile: 11 | # interface_profile: 12 | # leaf_id: 13 | # eth_num: 14 | # ip_address: 15 | # mtu: 16 | # target_dscp: 17 | 18 | tenant: tenantA 19 | routed_outside: L3-Out 20 | node_profile: border-leaf 21 | interface_profile: L3-OSPF-Leaf2 22 | leaf_id: 101 23 | eth_num: 1/1 24 | ip_address: 30.30.30.1/24 25 | mtu: 1500 26 | target_dscp: 44 27 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createAttachableAccessEntityprofile.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # entity_profile: 9 | # optional_args: 10 | # enable_infrastructure_vlan: [ True | False] 11 | # interface_policy_group: 12 | ## Specify domain profiles. You can have any number of domain profiles. 13 | # domain_profiles: 14 | # - name: 15 | # type: [ layer2 | layer3 | physical | vcenter ] 16 | 17 | entity_profile: entity 18 | optional_args: 19 | enable_infrastructure_vlan: False 20 | domain_profiles: 21 | - name: physA 22 | type: physical 23 | 24 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createPodPolicyGroup.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # autonomous_system_number: [any number] 9 | # policy_group: 10 | # optional_args: 11 | # date_time_policy: 12 | # isis_policy: 13 | # coop_policy: 14 | # bgp_policy: 15 | # communication_policy: 16 | # snmp_policy: 17 | 18 | autonomous_system_number: 1 19 | policy_group: policyA 20 | optional_args: 21 | date_time_policy: '' 22 | isis_policy: '' 23 | coop_policy: default 24 | bgp_policy: default 25 | communication_policy: '' 26 | snmp_policy: '' 27 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createStaticRoute.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # node_profile: 11 | # leaf_id: 12 | # router_id: 13 | # prefix: 14 | # optional_args: 15 | ## Specify next hop address. You can have any number of next hop address. 16 | # next_hop_address: 17 | # - 18 | 19 | tenant: mgmt 20 | routed_outside: vmm 21 | node_profile: borderLeaf 22 | leaf_id: 101 23 | router_id: 1.0.0.2 24 | prefix: 1.1.1.1 25 | optional_args: 26 | next_hop_address: 27 | - 2.2.2.2 28 | - 3.3.3.3 -------------------------------------------------------------------------------- /configuration-python/lab/labConfiguringLayer3ManagementConnectivity.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | tenant: mgmt 6 | routed_outside: 7 | name: vmm 8 | optional_args: 9 | private_network: inb 10 | node_profile: 11 | name: borderLeaf 12 | leaf_id: 101 13 | router_id: 1.2.3.4 14 | static_route: 15 | prefix: 192.168.64.0/18 16 | optional_args: 17 | next_hop_address: 18 | - 192.168.62.2 19 | interface_profile: 20 | name: portProfile1 21 | leaf_id: 101 22 | eth_num: 1/40 23 | ip_address: 192.168.62.1/30 24 | optional_args: 25 | mtu: 1500 26 | external_network_epg: 27 | name: vmmMgmt 28 | optional_args: 29 | subnet_ip: 0.0.0.0/0 30 | consumer_contract: 31 | name: default 32 | 33 | 34 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createL3EpgProviderOrConsumerContract.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # tenant: 9 | # routed_outside: 10 | # external_network_epg: 11 | # contract_type: [ provided | consumed ] 12 | # contract: 13 | # optional_args: 14 | # prio: [ layer2 | layer3 | physical | vcenter ] 15 | # match_type: [ All | AtleastOne | AtmostOne | None ] 16 | 17 | tenant: tenantA 18 | routed_outside: L3-Out 19 | external_network_epg: L3-Out-EPG 20 | contract_type: consumed 21 | contract: default 22 | optional_args: 23 | prio: level2 24 | match_type: AtmostOne 25 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createVcenterController.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # vmm_provider: [ VMware | Microsoft ] 9 | # vmm_domain: 10 | # vcenter_controller: 11 | # host_or_ip: 12 | # data_center: 13 | # optional_args: 14 | # stats_mode: [ enabled | disabled ] 15 | # management_epg: 16 | # associated_credential: 17 | 18 | vmm_provider: VMware 19 | vmm_domain: e 20 | vcenter_controller: cc 21 | host_or_ip: 192.168.1.101 22 | data_center: ACILab 23 | optional_args: 24 | stats_mode: enabled 25 | management_epg: vmmMgmt 26 | associated_credential: adminn 27 | -------------------------------------------------------------------------------- /configuration-python/generic_code/apicPython/createLocalUser.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | host: 3 | user: admin 4 | password: 5 | 6 | # Usage: 7 | # ------------------------------------------------------- 8 | # local_user: 9 | # local_password: 10 | # optional_args: 11 | # first_name: 12 | # last_name: 13 | # phone: 14 | # email: 15 | # description: 16 | # status: [ inactive | active ] 17 | # expires: [ yes | no ] 18 | # expiration_date: