The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language.
You can use any programming language that supports Web services to create a Web services client that invokes the DCNM POAP Web services API. This section just lists out the example HTTP request and response for reference.
The examples will show the following steps to configure POAP:
Step 1 Call logon to get a Dcnm-Token
Step 3 Create a config/image server
The logon API takes “username:password” with Basic base64 encoded in HTTP Authorization header, like “Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==”. It will return the Token in the payload, and this token will be used as Dcnm-Token in the subsequent API.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/json; charset=UTF-8
Authorization: Basic YWRtaW46YWRtaW4xMjM=
Content-Type: application/json
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/json; charset=UTF-8
Dcnm-Token: NUVyu5Y0YHDv0tT6xFuIPd+Cu9OA1XCQ
Cookie: JSESSIONID=4C975316B01A44215861475E1B5F9328
"bootFilename":"poap_dcnm.py",
"domainNameServers":"2.2.2.2",
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/json; charset=UTF-8
Dcnm-Token: NUVyu5Y0YHDv0tT6xFuIPd+Cu9OA1XCQ
Cookie: JSESSIONID=4C975316B01A44215861475E1B5F9328
"url":"scp://10.77.247.151/var/lib/tftpboot/dcnm",
This is a SOAP API call, will need to get the “memDbId” for the group which POAP devices belong to. In Create POAP Definition, this “memDbId” will be used as "lanGroup" in the request.
http:// 10.77.247.111:80/DbAdminWSService/DbAdminWS
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns0:token xmlns:ns0="http://dcnm/headers">NUVyu5Y0YHB5PfWoiQqNY64FVVw6yv2l</ns0:token>
<ns0:session xmlns:ns0="http://dcnm/headers">0</ns0:session>
<tns:getGroupNavigation xmlns:tns="http://ep.san.jaxws.dcbu.cisco.com/"/>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<tns:getGroupNavigationResponse xmlns:tns="http://ep.san.jaxws.dcbu.cisco.com/">
<result><![CDATA[<groupList name='Data Center'>
<group isBranch="true" name="Default_LAN" state ="unchecked" selectable= "true" memDbId="2" type="1" ></group>
<group isBranch="true" name="Default_SAN" state ="unchecked" selectable= "false" memDbId="1" type="2" >
</group></groupList>]]></result>
This is a SOAP API call to get the template, in this example, it will get the Base_Leaf_Template that will later be used to generate the configuration.
http://10.77.247.139:80/ConfigTemplateWSService/ConfigTemplateWS
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns0:token xmlns:ns0="http://dcnm/headers">NUVyu5Y0YHB5PfWoiQqNY64FVVw6yv2l</ns0:token>
<ns0:session xmlns:ns0="http://dcnm/headers">0</ns0:session>
<tns:getAllPublishedTemplates xmlns:tns="http://ep.san.jaxws.dcbu.cisco.com/"/>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<tns:getAllPublishedTemplatesResponse xmlns:tns="http://ep.san.jaxws.dcbu.cisco.com/">
<assignedInstanceClassId>0</assignedInstanceClassId>
<instanceClassId>27</instanceClassId>
<instanceName>com.cisco.dcbu.dcm.model.cfgtemplate.ConfigTemplate:name=Leaf_Template:type=false</instanceName>
<description>This file specifies the template configuration for leaf switch with annotations</description>
<fileName>leaf_annotations.template</fileName>
<value>"The host name of the switch"</value>
<key>UseDNSReverseLookup</key>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Vlan interfaces allocated to this VDC or device"</value>
<parameterType>string[]</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"DNS name of the XMPP server or XMPP domain name"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"IP Address for the XMPP DNS name or domain name"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Management IP address used by DCNM to monitor this device"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The prefix in integer format. e.g. 24"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Default Gateway IP address"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"VLAN facing the server or VMs"</value>
<name>CUSTOMER_FACING_VLAN_ID</name>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"IP address facing the server or VMs"</value>
<name>CUSTOMER_FACING_IP</name>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"IP subnet facing the server or VMs. The prefix in integer format. e.g. 24"</value>
<name>CUSTOMER_FACING_PREFIX</name>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<name>FABRIC_FORWARDING_ID</name>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<name>ANYCAST_GATEWAY_MAC</name>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The role of the switch. e.g. leaf, spine"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Tier number of the switch. Tier 1 is leaf, 2 is spine"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"List of VLANs allowed separated by comma"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The comma separated list of fabric ports"</value>
<name>FABRIC_INTERFACES</name>
<parameterType>interfaceRange</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<name>XMPP_GROUPS_SEP_BY_SPACE</name>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"True if the cable plan should be enabled"</value>
<name>ENABLE_CABLE_PLAN</name>
<parameterType>boolean</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<supportedPlatforms>N7K,N6K</supportedPlatforms>
<templateType>POAP</templateType>
<timestamp>2013-09-30 08:04:08</timestamp>
<userDefined>false</userDefined>
<assignedInstanceClassId>0</assignedInstanceClassId>
<instanceClassId>31</instanceClassId>
<instanceName>com.cisco.dcbu.dcm.model.cfgtemplate.ConfigTemplate:name=Base_Leaf_Template:type=false</instanceName>
<description>This file specifies the template configuration for leaf switch</description>
<fileName>base_leaf.template</fileName>
<name>Base_Leaf_Template</name>
<value>"The host name of the switch"</value>
<key>UseDNSReverseLookup</key>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Management IP address used by DCNM to monitor this device"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Management Prefix"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Default Gateway IP address"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Plain text or 5 encrypted"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The role of the switch. e.g. leaf, spine"</value>
<defaultValue>leaf</defaultValue>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The comma and dash separated list of fabric ports"</value>
<name>FABRIC_INTERFACES</name>
<parameterType>interfaceRange</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The comma and dash separated list of host ports"</value>
<parameterType>interfaceRange</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Backbone VLAN ID"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Backbone IP address/prefix"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Backbone IPv6 address/prefix"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"IP Address of the Auto-config LDAP Server"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"IP Address of the XMPP Server"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"FQDN of the XMPP Server"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Space separated XMPP Spine Group Names"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"True if VPC should be configured"</value>
<parameterType>boolean</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<key>IsVPCPeerLinkPortChannel</key>
<name>VPC_PEER_LINK_PORT_CHANNEL_NUMBER</name>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<name>VPC_PEER_LINK_IF_NAMES</name>
<parameterType>interfaceRange</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>structureArray</parameterType>
<parameterTypeStructure>true</parameterTypeStructure>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>interface</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<supportedPlatforms>N7K,N6K</supportedPlatforms>
<templateType>POAP</templateType>
<timestamp>2013-09-30 08:04:08</timestamp>
<userDefined>false</userDefined>
<assignedInstanceClassId>0</assignedInstanceClassId>
<instanceClassId>36</instanceClassId>
<instanceName>com.cisco.dcbu.dcm.model.cfgtemplate.ConfigTemplate:name=Base_Spine_Template:type=false</instanceName>
<description>This file specifies the template configuration for spine switch</description>
<fileName>base_spine.template</fileName>
<name>Base_Spine_Template</name>
<value>"The host name of the switch"</value>
<key>UseDNSReverseLookup</key>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Management IP address used by DCNM to monitor this device"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Management Prefix"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Default Gateway IP address"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Plain text or 5 encrypted"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The role of the switch. e.g. leaf, spine"</value>
<defaultValue>spine</defaultValue>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"The comma and dash separated list of fabric ports"</value>
<name>FABRIC_INTERFACES</name>
<parameterType>interfaceRange</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Backbone VLAN ID"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Backbone IP address"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Backbone Prefix"</value>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"IP Address of the XMPP Server"</value>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"FQDN of the XMPP Server"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<value>"Space separated XMPP Spine Group Names"</value>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<supportedPlatforms>N7K,N6K</supportedPlatforms>
<templateType>POAP</templateType>
<timestamp>2013-09-30 08:04:08</timestamp>
<userDefined>false</userDefined>
<assignedInstanceClassId>0</assignedInstanceClassId>
<instanceClassId>38</instanceClassId>
<instanceName>com.cisco.dcbu.dcm.model.cfgtemplate.ConfigTemplate:name=VPC_Template:type=false</instanceName>
<description>This file specifies the template configuration for vpc with annotations</description>
<fileName>vpc_annotations.template</fileName>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>ipV4Address</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<key>IsVPCPeerLinkPortChannel</key>
<name>VPC_PEER_LINK_PORT_CHANNEL_NUMBER</name>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<name>VPC_PEER_LINK_PORT_CHANNEL_DESCRIPTION</name>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<name>VPC_PEER_LINK_IF_NAMES</name>
<parameterType>interfaceRange</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>structureArray</parameterType>
<parameterTypeStructure>true</parameterTypeStructure>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<key>PORT_CHANNEL_NUMBER</key>
<name>PORT_CHANNEL_NUMBER</name>
<parameterType>integer</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>interface</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<parameterType>string</parameterType>
<parameterTypeStructure>false</parameterTypeStructure>
<supportedPlatforms>N7K,N6K</supportedPlatforms>
<templateType>POAP</templateType>
<timestamp>2013-09-30 08:04:08</timestamp>
<userDefined>false</userDefined>
This is a SOAP API call to generate the configuration and later used to create the POAP definition. In this example, it’s using the “Base_Leaf_Template” to generate the configuration.
http://10.77.247.139:80/ConfigTemplateWSService/ConfigTemplateWS
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns0:token xmlns:ns0="http://dcnm/headers">ZO29rayKhzlieynOjb2N+b1x7pRHNyqB</ns0:token>
<ns0:session xmlns:ns0="http://dcnm/headers">0</ns0:session>
<tns:getPopulatedCommands xmlns:tns="http://ep.san.jaxws.dcbu.cisco.com/">
<instanceClassId>31</instanceClassId>
<instanceName>com.cisco.dcbu.dcm.model.cfgtemplate.ConfigTemplate:name=Base_Leaf_Template:type=false</instanceName>
<item>FABRIC_INTERFACES</item>
<item>VPC_PEER_LINK_PORT_CHANNEL_NUMBER</item>
Note Replace $$ with empty in the below response
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<tns:getPopulatedCommandsResponse xmlns:tns="http://ep.san.jaxws.dcbu.cisco.com/">
install feature-set fabricpath
!### Vinci Multicast Forwarding (NGMVPN)
ip multicast fabric-forwarding
fabric forwarding identifier 1
fabric forwarding anycast-gateway-mac 2020.0000.00AA
fabric forwarding switch-role leaf
username admin password $$cisco123$$ role network-admin
!### Configure IP host for SPoM XMPP server below
ip host $$xmpp.cisco.com$$ $$172.22.31.3$$
!### Configure SPoM XMPP Server below
fabric access server $$xmpp.cisco.com$$ vrf management password $$xmpp_123$$
!### Subscribe this device to this XMPP group
fabric access group $$leaf_group$$
fabric database profile-map global
ethernet-tag encapsulation dot1q default dynamic
ethernet-tag encapsulation vni default dynamic
!### Configure fabric database location
!### db-table "ou=segments,dc=cisco,dc=com"
!### is a variable that should match the table
!### name that is populated in the LDAP database.
server protocol ldap ip $$172.22.31.2$$
db-table ou=segments,dc=cisco,dc=com key-type 1
!### Enable global mobility-domain only when you
!### are going to use (vlan, mobility_domain) to search ADBM database
!### fabric database mobility-domain %mobility_domain
route-map FABRIC-RMAP-REDIST-HOST deny 10
route-map FABRIC-RMAP-REDIST-HOST permit 20
route-map FABRIC-RMAP-REDIST-V6HOST deny 10
route-map FABRIC-RMAP-REDIST-V6HOST permit 20
ip dhcp relay information option
ip dhcp relay information option vpn
fabric forwarding control-segment
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
set path-selection all advertise
redistribute hmm route-map FABRIC-RMAP-REDIST-HOST
additional-paths selection route-map ALL-PATHS
redistribute hmm route-map FABRIC-RMAP-REDIST-V6HOST
additional-paths selection route-map ALL-PATHS
neighbor $$172.22.31.12$$ remote-as 100
ip route 0.0.0.0/0 $$172.22.31.1$$
ip address $$172.22.31.23$$/$$24$$
system fabric dynamic-vlans 2500-3500
!###l3vm uses bootflash:platform.inf for the core vlans.
!###Please refer to CSCuj12763 for additional details
system fabric core-vlans 2500-2999
!### Sample config for setting interface
!### address e.g. for connecting to
!### 101.101.101.91 ldap server
! ip address 101.101.101.22/24
configure profile vrf_tenant_profile
redistribute hmm route-map FABRIC-RMAP-REDIST-HOST
ip address $gatewayIpAddress/$netMaskLength
ip dhcp relay address $dhcpServerAddr use-vrf default
fabric forwarding mode proxy-gateway
configure profile vrf-common-v6
redistribute hmm route-map FABRIC-RMAP-REDIST-V6HOST
ipv6 address $gatewayIpv6Address/$prefixLength
fabric forwarding mode proxy-gateway
configure profile vrf-common-v4nv6
redistribute hmm route-map FABRIC-RMAP-REDIST-HOST
redistribute hmm route-map FABRIC-RMAP-REDIST-V6HOST
config profile GoldProfile-v4nv6
ip address $gatewayIpAddress/$netMaskLength
ipv6 address $gatewayIpv6Address/$prefixLength
ip dhcp relay address $dhcpServerAddr use-vrf default
fabric forwarding mode proxy-gateway
include profile vrf-common-v4nv6
This REST API call will generate the DCNM POAP definition, save the definition into DCNM database and publish the configuration to the devices. This will use the configuration generated from step 6 and pass them in the request which shown in blue color.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Content-Type: application/json; charset=UTF-8
Dcnm-Token: NUVyu5Y0YHDv0tT6xFuIPd+Cu9OA1XCQ
Cookie: JSESSIONID=4C975316B01A44215861475E1B5F9328
"poapTemplateCol":[{"templateContent":"license grace-period\nhostname leaf-SR123456\n\ninstall feature-set fabric\nfeature-set fabric\nfeature fabric forwarding\n\ninstall feature-set fabricpath\nfeature-set fabricpath\n\n!#Cable Management\nfeature lldp\nfeature cable-management\nfabric connectivity tier 1\n\nfeature bgp\nfeature interface-vlan\nfeature vn-segment-vlan-based\nfeature dhcp\nfeature evb\nfeature pim\n\n!#feature SPoM\nfeature fabric access\n\n!### Vinci Multicast Forwarding (NGMVPN)\nfeature fabric multicast\n\n!### Vinci passive PIM\nip multicast fabric-forwarding\n\nfabric forwarding identifier 1\nfabric forwarding anycast-gateway-mac 2020.0000.00AA\nfabric forwarding switch-role leaf\n\nusername admin password cisco123 role network-admin\nno password strength-check\nip domain-lookup\n\n!### Configure IP host for SPoM XMPP server below\nip host xmpp.cisco.com 172.22.31.3\n\n!### Configure SPoM XMPP Server below\nfabric access server xmpp.cisco.com vrf management password xmpp_123\n\n!### Subscribe this device to this XMPP group \nfabric access group leaf_group\n\nfabric database profile-map global\n ethernet-tag encapsulation dot1q default dynamic\n ethernet-tag encapsulation vni default dynamic\n vdp vni default dynamic\n\n!### Configure fabric database location\n!### db-table \"ou=segments,dc=cisco,dc=com\"\n!### is a variable that should match the table\n!### name that is populated in the LDAP database.\nfabric database type asset\n server protocol ldap ip 172.22.31.2\n db-table ou=segments,dc=cisco,dc=com key-type 1\n\n!### Enable global mobility-domain only when you \n!### are going to use (vlan, mobility_domain) to search ADBM database \n!### fabric database mobility-domain %mobility_domain\n\nroute-map FABRIC-RMAP-REDIST-HOST deny 10\n match interface Vlan 12\nroute-map FABRIC-RMAP-REDIST-HOST permit 20\n match ip address HOSTS \n\nroute-map FABRIC-RMAP-REDIST-V6HOST deny 10\n match interface Vlan 12\nroute-map FABRIC-RMAP-REDIST-V6HOST permit 20\n match ip address V6HOSTS\n\nip dhcp snooping\nservice dhcp\nip dhcp relay\nip dhcp relay information option\nip dhcp relay information option vpn\n\ninterface Vlan 12\n no shutdown\n ip address 172.22.31.15\n ipv6 address 2345::2346\n fabric forwarding control-segment\n\n\ninterface eth1/7\n no shutdown\n switchport\n switchport mode fabricpath\n fabricpath isis hello-interval 100\n fabricpath isis retransmit-interval 10\n fabricpath isis retransmit-throttle-interval 200\n\ninterface eth1/8\n no shutdown\n switchport\n switchport mode fabricpath\n fabricpath isis hello-interval 100\n fabricpath isis retransmit-interval 10\n fabricpath isis retransmit-throttle-interval 200\n\ninterface eth1/6\n no shutdown\n switchport\n switchport mode fabricpath\n fabricpath isis hello-interval 100\n fabricpath isis retransmit-interval 10\n fabricpath isis retransmit-throttle-interval 200\n\ninterface eth1/5\n no shutdown\n switchport\n switchport mode fabricpath\n fabricpath isis hello-interval 100\n fabricpath isis retransmit-interval 10\n fabricpath isis retransmit-throttle-interval 200\n\ninterface eth1/4\n no shutdown\n switchport\n switchport mode fabricpath\n fabricpath isis hello-interval 100\n fabricpath isis retransmit-interval 10\n fabricpath isis retransmit-throttle-interval 200\n\n\ninterface eth1/10\n switchport \n switchport mode trunk\n no shutdown\n\ninterface eth1/11\n switchport \n switchport mode trunk\n no shutdown\n\ninterface eth1/12\n switchport \n switchport mode trunk\n no shutdown\n\nroute-map ALL-PATHS permit 10\n set path-selection all advertise\n\nvlan 12\n mode fabricpath\n\nrouter bgp 100\n router-id 172.22.31.10\n address-family ipv4 unicast\n redistribute hmm route-map FABRIC-RMAP-REDIST-HOST \n maximum-paths ibgp 2 \n additional-paths receive\n additional-paths selection route-map ALL-PATHS\n address-family ipv6 unicast\n redistribute hmm route-map FABRIC-RMAP-REDIST-V6HOST\n maximum-paths ibgp 2\n additional-paths receive\n additional-paths selection route-map ALL-PATHS\n address-family vpnv4 unicast\n additional-paths receive\n address-family vpnv6 unicast\n additional-paths receive\n address-family ipv4 mvpn\n additional-paths receive\n address-family ipv6 mvpn\n additional-paths receive\n\n neighbor 172.22.31.12 remote-as 100\n address-family ipv4 unicast\n send-community both\n address-family ipv6 unicast\n send-community both\n address-family vpnv4 unicast\n send-community extended\n address-family vpnv6 unicast\n send-community extended\n address-family ipv4 mvpn\n send-community both\n address-family ipv6 mvpn\n send-community both\n\nvrf context management\n ip route 0.0.0.0/0 172.22.31.1\n\ninterface mgmt0\n vrf member management\n no cdp enable\n ip address 172.22.31.23/24\n\nsystem fabric dynamic-vlans 2500-3500\n\n!###l3vm uses bootflash:platform.inf for the core vlans. \n!###Please refer to CSCuj12763 for additional details\nsystem fabric core-vlans 2500-2999\n\nline console\n exec-timeout 0\nline vty\n\n\n!### Sample config for setting interface\n!### address e.g. for connecting to\n!### 101.101.101.91 ldap server\n\n!interface Ethernet 1/18\n! no switchport\n! ip address 101.101.101.22/24\n! no shutdown\n\nconfigure profile vrf_tenant_profile\n vlan $id\n mode fabricpath\n vn-segment $segment\n interface vlan $id\n vrf member $vrfname\n ip address 172.22.31.15\n ipv6 address 2345::2346\n no shut\nexit\n\nconfigure profile vrf-common\n vrf context $vrfName\n vni $include_l3_segid\n rd auto\n address-family ipv4 unicast\n route-target both auto\n router bgp $asn\n vrf $vrfName\n address-family ipv4 unicast\n redistribute hmm route-map FABRIC-RMAP-REDIST-HOST\n maximum-paths ibgp 2 \nexit\n\nconfig profile GoldProfile\n interface vlan $vlanId\n vrf member $vrfName\n ip address $gatewayIpAddress/$netMaskLength\n ip dhcp relay address $dhcpServerAddr use-vrf default\n fabric forwarding mode proxy-gateway\n no ip redirects\n no shutdown\n vlan $vlanId\n vn-segment $segmentId\n include profile vrf-common\nend\n\nconfigure profile vrf-common-v6\n vrf context $vrfName\n vni $include_l3_segid\n rd auto\n address-family ipv6 unicast\n route-target both auto\n router bgp $asn\n vrf $vrfName\n address-family ipv6 unicast\n redistribute hmm route-map FABRIC-RMAP-REDIST-V6HOST\n maximum-paths ibgp 2 \nexit\n\nconfig profile GoldProfile-v6\n interface vlan $vlanId\n vrf member $vrfName\n ipv6 address $gatewayIpv6Address/$prefixLength\n fabric forwarding mode proxy-gateway\n no shutdown\n vlan $vlanId\n vn-segment $segmentId\n include profile vrf-common-v6\nend\n\nconfigure profile vrf-common-v4nv6\n vrf context $vrfName\n vni $include_l3_segid\n rd auto\n address-family ipv4 unicast\n route-target both auto\n address-family ipv6 unicast\n route-target both auto\n router bgp $asn\n vrf $vrfName\n address-family ipv4 unicast\n redistribute hmm route-map FABRIC-RMAP-REDIST-HOST\n maximum-paths ibgp 2 \n address-family ipv6 unicast\n redistribute hmm route-map FABRIC-RMAP-REDIST-V6HOST\n maximum-paths ibgp 2 \nexit\n\nconfig profile GoldProfile-v4nv6\n interface vlan $vlanId\n vrf member $vrfName\n ip address $gatewayIpAddress/$netMaskLength\n ipv6 address $gatewayIpv6Address/$prefixLength\n ip dhcp relay address $dhcpServerAddr use-vrf default\n fabric forwarding mode proxy-gateway\n no ip redirects\n no shutdown\n vlan $vlanId\n vn-segment $segmentId\n include profile vrf-common-v4nv6\nend\n","templateName":"Base_Leaf_Template","methodType":"POST","id":0,"templateNVPairs":"{\"0\":{\"text\":\"leaf-SR123456\",\"annotations\":[{\"value\":\"\\\"The host name of the switch\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"},{\"value\":\"true\",\"key\":\"UseDNSReverseLookup\"},{\"value\":\"true\",\"key\":\"IsSwitchName\"}],\"name\":\"SWITCH_NAME\"},\"1\":{\"text\":\"172.22.31.23\",\"annotations\":[{\"value\":\"\\\"Management IP address used by DCNM to monitor this device\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsVPCPeerLinkSrc\"},{\"value\":\"true\",\"key\":\"IsManagementIP\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"MGMT_IP\"},\"2\":{\"text\":\"24\",\"annotations\":[{\"value\":\"\\\"Management Prefix\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"MGMT_PREFIX\"},\"3\":{\"text\":\"172.22.31.1\",\"annotations\":[{\"value\":\"\\\"Default Gateway IP address\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"DEFAULT_GATEWAY\"},\"4\":{\"text\":\"cisco123\",\"annotations\":[{\"value\":\"\\\"Plain text or 5 encrypted\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"ADMIN_PASSWORD\"},\"5\":{\"text\":\"leaf\",\"annotations\":[{\"value\":\"\\\"The role of the switch. e.g. leaf, spine\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"},{\"value\":\"true\",\"key\":\"IsSwitchRole\"}],\"name\":\"SWITCH_ROLE\"},\"6\":{\"text\":\"eth1/4-8\",\"annotations\":[{\"value\":\"\\\"The comma and dash separated list of fabric ports\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"},{\"value\":\"true\",\"key\":\"IsFabricPort\"}],\"name\":\"FABRIC_INTERFACES\"},\"7\":{\"text\":\"eth1/10-12\",\"annotations\":[{\"value\":\"\\\"The comma and dash separated list of host ports\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"},{\"value\":\"true\",\"key\":\"IsHostPort\"}],\"name\":\"HOST_INTERFACES\"},\"8\":{\"text\":\"12\",\"annotations\":[{\"value\":\"\\\"Backbone VLAN ID\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"BACKBONE_VLAN\"},\"9\":{\"text\":\"172.22.31.15\",\"annotations\":[{\"value\":\"\\\"Backbone IP address/prefix\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"BACKBONE_IP\"},\"10\":{\"text\":\"2345::2346\",\"annotations\":[{\"value\":\"\\\"Backbone IPv6 address/prefix\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"BACKBONE_IPV6\"},\"11\":{\"text\":\"172.22.31.10\",\"annotations\":[{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"BGP_ROUTER_IP\"},\"12\":{\"text\":\"172.22.31.12\",\"annotations\":[{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"BGP_RR_IP\"},\"13\":{\"text\":\"172.22.31.2\",\"annotations\":[{\"value\":\"\\\"IP Address of the Auto-config LDAP Server\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"LDAP_SERVER_IP\"},\"14\":{\"text\":\"172.22.31.3\",\"annotations\":[{\"value\":\"\\\"IP Address of the XMPP Server\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"XMPP_SERVER_IP\"},\"15\":{\"text\":\"xmpp.cisco.com\",\"annotations\":[{\"value\":\"\\\"FQDN of the XMPP Server\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"XMPP_SERVER\"},\"16\":{\"text\":\"leaf_group\",\"annotations\":[{\"value\":\"\\\"Space separated XMPP Spine Group Names\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"XMPP_GROUPS\"},\"17\":{\"text\":\"xmpp_123\",\"annotations\":[{\"value\":\"\\\"Password\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"XMPP_PASSWORD\"},\"18\":{\"text\":\"True\",\"annotations\":[{\"value\":\"\\\"True if VPC should be configured\\\"\",\"key\":\"Description\"},{\"value\":\"true\",\"key\":\"IsMandatory\"}],\"name\":\"ENABLE_VPC\"},\"19\":{\"text\":\"3\",\"annotations\":[{\"value\":\"true\",\"key\":\"IsVPCDomainID\"}],\"name\":\"VPC_DOMAIN_ID\"},\"20\":{\"text\":\"172.22.31.24\",\"annotations\":[{\"value\":\"true\",\"key\":\"IsVPCPeerLinkDst\"}],\"name\":\"VPC_PEER_DST\"},\"21\":{\"text\":\"2\",\"annotations\":[{\"value\":\"true\",\"key\":\"IsVPCPeerLinkPortChannel\"},{\"value\":\"true\",\"key\":\"IsVPCPort\"}],\"name\":\"VPC_PEER_LINK_PORT_CHANNEL_NUMBER\"},\"22\":{\"text\":\"eth3/4\",\"annotations\":[{\"value\":\"true\",\"key\":\"IsVPCPeerLinkPort\"}],\"name\":\"VPC_PEER_LINK_IF_NAMES\"},\"23\":{\"text\":\"{{2,eth4/4}}\",\"annotations\":[],\"name\":\"VPC_ARRAY\"}}"}],"poapSwitchCol":[{"switchName":"leaf-SR123456","publish":"true","lanGroup":2,"deviceType":"N6K","systemImageName":"n6000-system-image.bin","virutalDeviceContextName":"vdc","kickstartImageName":"n6000-kick-image.bin","methodType":"POST","imageServerId":1,"serialNumber":"SR123456","switchStatus":"Not Discovered","configServerId":1,"username":"admin","mgmtIp":"172.22.31.23","publishStatus":"Published","tier":0,"id":0,"password":"cisco123"}]