4b6add4aa9
Add a command that will make getting the network moref a lot simpler. nsxadmin -r networks -o list Output:- NSX Plugin in use: nsxv ==== [NEUTRON] List Networks ==== networks +-----------------------------+----------------+--------------------------------------+ | type | moref | name | +-----------------------------+----------------+--------------------------------------+ | DistributedVirtualPortgroup | dvportgroup-61 | edge-8-1-18d92ccd5-9f9f-4abf-9c5e-0e | | DistributedVirtualPortgroup | dvportgroup-44 | edge-6-1-1d99f80d0-58af-436e-9f02-8b | | Network | network-85 | none | | DistributedVirtualPortgroup | dvportgroup-71 | edge-9-1-113708c82-3a38-458c-80ce-8c | | DistributedVirtualPortgroup | dvportgroup-65 | edge-7-1-17c1cc8da-0642-4014-abce-ba | | Network | network-17 | VM Network | | DistributedVirtualPortgroup | dvportgroup-81 | edge-14-1-1490d7f36-7558-4519-a602-3 | | DistributedVirtualPortgroup | dvportgroup-39 | edge-4-1-13fdc6af0-f2f5-4335-9a2d-af | | DistributedVirtualPortgroup | dvportgroup-32 | edge-2-1-1ba392d5a-66cc-4c6d-8a45-f4 | | VirtualWire | virtualwire-3 | 9d0d1049-e1bf-473d-8489-5fe3d7679753 | | DistributedVirtualPortgroup | dvportgroup-86 | edge-16-1-1ffc203ca-717d-4bb2-b7f9-e | | VirtualWire | virtualwire-13 | 90a21c2d-2167-470e-b44f-34a3deb428f2 | +-----------------------------+----------------+--------------------------------------+ Change-Id: I809a7b12c883fea22b8bacc77df924dad1a394e6
35 lines
1.2 KiB
Python
35 lines
1.2 KiB
Python
# Copyright 2015 VMware, Inc. All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# Default conf file locations
|
|
NEUTRON_CONF = '/etc/neutron/neutron.conf'
|
|
NSX_INI = '/etc/neutron/plugins/vmware/nsx.ini'
|
|
|
|
# NSX Plugin Constants
|
|
NSXV3_PLUGIN = 'vmware_nsx.plugin.NsxV3Plugin'
|
|
NSXV_PLUGIN = 'vmware_nsx.plugin.NsxVPlugin'
|
|
|
|
# NSXV3 Resource Constants
|
|
FIREWALL_SECTIONS = 'Firewall Sections'
|
|
FIREWALL_NSX_GROUPS = 'Firewall NS Groups'
|
|
SECURITY_GROUPS = 'security-groups'
|
|
|
|
# NSXV Resource Constants
|
|
EDGES = 'edges'
|
|
SPOOFGUARD_POLICY = 'spoofguard-policy'
|
|
DHCP_BINDING = 'dhcp-binding'
|
|
BACKUP_EDGES = 'backup-edges'
|
|
ORPHANED_EDGES = 'orphaned-edges'
|
|
NETWORKS = 'networks'
|