From owner-freebsd-virtualization@freebsd.org Sun Oct 11 17:44:04 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5437A112D6 for ; Sun, 11 Oct 2015 17:44:04 +0000 (UTC) (envelope-from alfred@freebsd.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9EF2912E5 for ; Sun, 11 Oct 2015 17:44:04 +0000 (UTC) (envelope-from alfred@freebsd.org) Received: from Alfreds-MacBook-Pro-2.local (unknown [IPv6:2601:645:8004:7515:4d2f:952f:e666:2ea2]) by elvis.mu.org (Postfix) with ESMTPSA id 5196B345A93F for ; Sun, 11 Oct 2015 10:43:57 -0700 (PDT) To: freebsd-virtualization@freebsd.org From: Alfred Perlstein Subject: Program for dynamically making taps/bridge topologies. Organization: FreeBSD Message-ID: <561A9FDC.40808@freebsd.org> Date: Sun, 11 Oct 2015 10:43:56 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Oct 2015 17:44:04 -0000 Hello, Here at Norse we are using bhyve to run our appliance in a test environment. We have a need for a test network to be made on demand, so this weekend I took some time and wrote a tool that allows you to specify a topology of bridges and taps that you can then use to create your virtual network. In our case our test servers have a bridge0 that is static and bridges to our private test network. However we also need a bridge to be dynamically that we will generate traffic over in isolation. We then need taps created and "assigned" or labeled properly for our QA suite to attach to our VMs properly. We then also need the ability to query the topology and emit the correct taps to assign to each vm. Finally we need the ability to tear down the virtual network once it's no longer needed. This tool provides all three functions. The tool is available here: https://github.com/splbio/netmanager Comments, pull requests and questions are welcome. -Alfred