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
xecommands 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-cliif 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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login