cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
699
Views
0
Helpful
0
Replies

Deployment of CSR1000v in vCenter with PowerShell

MARTIN STREULE
Spotlight
Spotlight

Hi

 

I can successfully deploy a CSR with a PowerShell script with the OVA template.

 
Basically I use this in the script:
 
$csr_OvfPath = "csr1000v-universalk9.17.03.03.ova"
$csrOvfConfig = Get-OvfConfiguration -Ovf $csr_OvfPath
$csrConfigHash = $csrOvfConfig.ToHashTable()
$csrConfigHash["com.cisco.csr1000v.hostname.1"] = $vcube.csr_hostname
...and a lot more...
Import-VApp $csr_OvfPath -Name $vcube.vmName -OvfConfiguration $csrConfigHash -VMHost $vmHost -Datastore $csrDatastore
 
...and this works pretty well -the vCSR is deployed but config-related rather empty.
 
*BUT* when I try to configure some additional stuff with "com.cisco.csr1000v.ios-config-0001" it ignores those config statements.
 
Example:
$csrConfigHash["com.cisco.csr1000v.ios-config-0001"] = "ip vrf Mgmt"
$csrConfigHash["com.cisco.csr1000v.ios-config-0002"] = "description *** scco ***"
$csrConfigHash["com.cisco.csr1000v.ios-config-0003"] = "rd 100:101"

I already tried a lot of different stuff (e.g. with/without trailing ".1") - but am now running out of ideas
 
Any good ideas?
0 Replies 0
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: