How to do it...

PyNSXv is a Python project to configure and control NSX based Software-Defined Data Centers. First configure nsx.ini to point to the correct values for the parameters:

[nsxv]
nsx_manager = <nsx_manager_IP>
nsx_username = admin
nsx_password = <nsx_manager_password>
    
[vcenter]
vcenter = <VC_IP_or_Hostname>
vcenter_user = [email protected]
vcenter_passwd = <vc_password>
    
[defaults]
transport_zone = <transport_zone_name>
datacenter_name = <vcenter datacenter name>
edge_datastore = <datastore name to deploy edges in>
edge_cluster = <vcenter cluster for edge gateways>

Then pynsxv can offer a global view of the data center network to configure and control it as shown by the following output:

$ pynsxv lswitch list
+---------------------+----------------+
| LS name             | LS ID          |
|---------------------+----------------|
| edge_ls             | virtualwire-63 |
| dlr_ls              | virtualwire-64 |
+---------------------+----------------+
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.187.233