XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    transfer vlan networks from one pool to another

    Scheduled Pinned Locked Moved Management
    4 Posts 3 Posters 123 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T Offline
      tgross41
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • olivierlambertO Offline
        olivierlambert Vates 🪐 Co-Founder CEO
        last edited by

        You mean the creation of a big number of networks with each one VLAN?

        1 Reply Last reply Reply Quote 0
        • bleaderB Offline
          bleader Vates 🪐 XCP-ng Team
          last edited by

          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 🙂

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            tgross41 @bleader
            last edited by

            @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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post