transfer vlan networks from one pool to another
-
Has anyone developed a script to copy a large number of vlan networks on a bonded pif from one pool to another?
Before I spend a lot of time on this I'd rather not re-invent the wheel?
-
You mean the creation of a big number of networks with each one VLAN?
-
I don't think there is such a thing (if I understood your question properly), I have a simple script to create a network, add a vlan to it, create a vif and add it to a given VM. That's using
xe
commands directly on a single host.From my understanding here you'll need to parse the networks and vlans, and recreate them on another pool, but that will need to be done outside of a host/pool as you need to recreate them on another pool.
I guess you could go the ssh + key way, that would be my first instinct. But it may also be doable, and maybe easier through XO's API or
xo-cli
if you do not want to mess with an API directly and prefer a shell script -
@bleader you have it right.
I was checking before I started down the path of writing something myself.
We are a public entity that operates very similar to an MSP so we have a ton of VLANs. We're migrating from vCenter/ESXi and have always used powerCLI with powershell to perform these functions.