- Preface
- Cisco Fabric Automation API
- Auto Configuration
- DHCP
- Power On Auto Provisioning
- Cable Plan
- DCI
- Multiple Mobility Domain with VLAN Translation
- Multiple Orchestrator Support
- Pre-Packaged Configuration Profiles
- Auto Config Examples
- Fabric Automation REST APIs for Openstack
- Pre-packaged POAP Templates
- POAP Examples
- vCD Sample Script
Pre-Packaged POAP Template
Introduction
There are three POAP network device templates pre-packaged and available by default in DCNM:
Default Leaf Template
description = This file specifies the template configuration for leaf switch;
supportedPlatforms = N7K, N6K;
@(IsSwitchName=true, UseDNSReverseLookup=true, IsMandatory=true, Description="The host name of the switch")
@(IsManagementIP=true, IsMandatory=true, IsVPCPeerLinkSrc=true, Description="Management IP address used by DCNM to monitor this device")
@(IsMandatory=true, Description="Management Prefix")
@(IsMandatory=true, Description="Default Gateway IP address")
@(IsMandatory=true, Description="Plain text or 5 encrypted")
@(IsMandatory=true, IsSwitchRole=true, Description="The role of the switch. e.g. leaf, spine")
@(IsMandatory=true, IsFabricPort=true, Description="The comma and dash separated list of fabric ports")
interfaceRange FABRIC_INTERFACES;
@(IsMandatory=true, IsHostPort=true, Description="The comma and dash separated list of host ports")
interfaceRange HOST_INTERFACES;
@(IsMandatory=true, Description="Backbone VLAN ID")
@(IsMandatory=true, Description="Backbone IP address/prefix")
@(IsMandatory=true, Description="Backbone IPv6 address/prefix")
@(IsMandatory=true, Description="IP Address of the Auto-config LDAP Server")
@(IsMandatory=true, Description="IP Address of the XMPP Server")
@(IsMandatory=true, Description="FQDN of the XMPP Server")
@(IsMandatory=true, Description="Space separated XMPP Spine Group Names")
@(IsMandatory=true, Description="Password")
@(IsMandatory=true, Description="True if VPC should be configured")
@(IsVPCPeerLinkPortChannel=true, IsVPCPort=true)
integer VPC_PEER_LINK_PORT_CHANNEL_NUMBER;
interfaceRange VPC_PEER_LINK_IF_NAMES;
@(IsVPCID=true,IsVPCPortChannel=true)
install feature-set fabricpath
if( $$ENABLE_VPC$$ == "true") {
!### 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 $$ADMIN_PASSWORD$$ role network-admin
!### Configure IP host for SPoM XMPP server below
ip host $$XMPP_SERVER$$ $$XMPP_SERVER_IP$$
!### Configure SPoM XMPP Server below
fabric access server $$XMPP_SERVER$$ vrf management password $$XMPP_PASSWORD$$
!### Subscribe this device to this XMPP group
fabric access group $$XMPP_GROUPS$$
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 $$LDAP_SERVER_IP$$
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
match interface Vlan $$BACKBONE_VLAN$$
route-map FABRIC-RMAP-REDIST-HOST permit 20
route-map FABRIC-RMAP-REDIST-V6HOST deny 10
match interface Vlan $$BACKBONE_VLAN$$
route-map FABRIC-RMAP-REDIST-V6HOST permit 20
ip dhcp relay information option
ip dhcp relay information option vpn
interface Vlan $$BACKBONE_VLAN$$
ipv6 address $$BACKBONE_IPV6$$
fabric forwarding control-segment
foreach FABRIC_INTERFACE in $$FABRIC_INTERFACES$$ {
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
foreach HOST_INTERFACE in $$HOST_INTERFACES$$ {
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 $$BGP_RR_IP$$ remote-as 100
ip route 0.0.0.0/0 $$DEFAULT_GATEWAY$$
ip address $$MGMT_IP$$/$$MGMT_PREFIX$$
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
if( $$ENABLE_VPC$$ == "true") {
peer-keepalive destination $$VPC_PEER_DST$$ source $$MGMT_IP$$ vrf management
interface port-channel$$VPC_PEER_LINK_PORT_CHANNEL_NUMBER$$
spanning-tree port type network
foreach VPC_PEER_LINK_IF_NAME in $$VPC_PEER_LINK_IF_NAMES$$ {
interface @VPC_PEER_LINK_IF_NAME
channel-group $$VPC_PEER_LINK_PORT_CHANNEL_NUMBER$$
!### 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
ipv6 address $$BACKBONE_IPV6$$
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
Default Spine Template
description = This file specifies the template configuration for spine switch;
supportedPlatforms = N7K, N6K;
@(IsSwitchName=true, UseDNSReverseLookup=true, IsMandatory=true, Description="The host name of the switch")
@(IsManagementIP=true, IsMandatory=true, Description="Management IP address used by DCNM to monitor this device")
@(IsMandatory=true, Description="Management Prefix")
@(IsMandatory=true, Description="Default Gateway IP address")
@(IsMandatory=true, Description="Plain text or 5 encrypted")
@(IsMandatory=true, IsSwitchRole=true, Description="The role of the switch. e.g. leaf, spine")
@(IsMandatory=true, IsFabricPort=true, Description="The comma and dash separated list of fabric ports")
interfaceRange FABRIC_INTERFACES;
@(IsMandatory=true, Description="Backbone VLAN ID")
@(IsMandatory=true, Description="Backbone IP address")
@(IsMandatory=true, Description="Backbone Prefix")
@(IsMandatory=true, Description="IP Address of the XMPP Server")
@(IsMandatory=true, Description="FQDN of the XMPP Server")
@(IsMandatory=true, Description="Space separated XMPP Spine Group Names")
install feature-set fabricpath
fabric forwarding identifier 1
fabric forwarding switch-role spine
username admin password $$ADMIN_PASSWORD$$ role network-admin
!### Configure IP host for SPoM XMPP server below
ip host $$XMPP_SERVER$$ $$XMPP_SERVER_IP$$
!### Configure SPoM XMPP Server below
fabric access server $$XMPP_SERVER$$ vrf management password $$XMPP_PASSWORD$$
!### Subscribe this device to this XMPP group
fabric access group $$XMPP_GROUPS$$
interface Vlan $$BACKBONE_VLAN$$
ip address $$BACKBONE_IP$$/$$BACKBONE_PREFIX$$
fabric forwarding control-segment
foreach FABRIC_INTERFACE in $$FABRIC_INTERFACES$$ {
fabricpath isis hello-interval 100
fabricpath isis retransmit-interval 10
fabricpath isis retransmit-throttle-interval 200
ip route 0.0.0.0/0 $$DEFAULT_GATEWAY$$
Feedback