Installing

Create folder C:\Windows\System32\WindowsPowerShell\v1.0\Modules\FloodLightPScmdlet and download source files under it.

Usage

Connect to FloodLight controller

# Import module
Import-Module FloodLightPScmdlet

# List cmdlets
Get-Command -Module FloodLightPScmdlet

# Connect to FloodLight controller
Connect-FLcontroller -ControllerIP 192.168.10.10 -ControllerPort 8080 -ConnectionProtocol http


Using with Hyper-V

NOTE: You need latest version of FloodLight from GutHub and enabling virtual network module, look: http://docs.projectfloodlight.org/display/floodlightcontroller/VirtualNetworkFilter+%28Quantum+Plugin%29+%28Dev%29

# Create virtual network
New-FLvirtualNetwork -NetworkID 10 -Name "Test Network 10" -Gateway 10.0.0.1

# Attach virtual machine to virtual network
$vm = Get-VM -Name "test_vm"
Add-FLhostToVirtualNetwork -NetworkID 10 -PortName $vm.VMName -MacAddress $vm.NetworkAdapters[0].MacAddress

Last edited Feb 19, 2014 at 4:52 PM by ollijanatuinen, version 4