#! /usr/bin/env python """ =================================================================================================== Author: Petr Nemec Description: Get the edges Date: 2017-10-04 =================================================================================================== """ from nsx import NSX from nsx import credentials from nsx import seldc import sys from pprint import pprint # Select the vSphere to be modified inputs = 'inputs/nsx_' + seldc(sys.argv[1:]) + '.yml' # NSX Manager credentials cred = credentials(inputs) nsx = NSX(*cred) pprint(nsx.getedges())
#! /usr/bin/env python """ =================================================================================================== Description: template for quick testing of NSX methods =================================================================================================== """ from nsx import NSX from nsx import credentials cred = credentials('inputs/nsx_mylab.yml') nsx = NSX(*cred) # Continue with calling methods of NSX class etc. nsx.getedges() nsx.getswitches()