{size:10pt}Attached is a VisualStudio 2005 solution with one
project. The project consists of one nunit test case (which could easily be
converted to run in a console application. NUnit is also part of the zip
archive.){size}
{size:10pt} {size}
{size:10pt}The code does the
following:{size}
{size:10pt}1.{font:Times New Roman}{size:1}{font:'Times New Roman'}{size:7pt}
{font}{font}Finds a configuration in the workspace. In my
test the configuration had one VM with one physical and two virtual
networks.
{font:Courier New}{size:2}{size:10pt}2.{font:Times New Roman}{size:1}
{font:'Times New Roman'}{size:7pt}
{size}Captures it to the library
{font:Courier New}
{size:10pt}3.{font:Times New Roman}{size:1}{font:'Times New Roman'}{size:7pt}
{font}{font}Checks it out from the library
{font:Courier New}{size:2}{size:10pt}4.{font:Times New Roman}{size:1}
{font:'Times New Roman'}{size:7pt}
{size}Deploys it in fence mode (AllowAllInAndOut)
and it finds all physical and virtual networks that the configuration is
connected to and bridges all virtual networks to the primary physical
network.
{font:Courier New}
{size:10pt} {size}
{size:10pt}After running the code in lab manager I get this network
diagram for the deployed configuration:{size}