Files
vmware-nsx/vmware_nsx/shell/admin/plugins/common/constants.py
Adit Sarfaty 6a183663c8 [Admin-Util][NSX-v3]: list networks which are missing from backend
To run this: nsxadmin -r networks -o list-mismatches

Positive output example:
All internal networks exist on the NSX manager

Negative output example:
Found 4 internal networks missing from the NSX manager
+---------+--------------------------------------+--------------------------------------+
| name    | neutron_id                           | nsx_id                               |
+---------+--------------------------------------+--------------------------------------+
| net3    | 577eced7-cf03-4048-9b49-5180112137a7 | 731d0a8a-d7ec-4ea5-8852-3825b51a8fd4 |
| private | c42e10e6-a6ab-47b1-869a-b9bc15a86db9 | 92aa4713-bcb9-4248-829b-2e9e907d1c03 |
| net1    | 951039e4-84ca-43a2-a64e-24f37ca7a5ce | d45faea4-1320-4cdd-8bd3-7093afca0e2f |
| net2    | b11685f8-4481-4ee4-aa8c-726f0cdedb13 | 34afd33f-6c01-4ef6-8e25-00cfa3e77fef |
+---------+--------------------------------------+--------------------------------------+

Change-Id: I526c80ce2eb9b49feaed50ce64781b3f7a928b23
2016-05-30 15:33:36 +03:00

39 lines
1.3 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'
# Common Resource Constants
NETWORKS = 'networks'
# NSXV3 Resource Constants
FIREWALL_SECTIONS = 'firewall-sections'
FIREWALL_NSX_GROUPS = 'nsx-security-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'
MISSING_EDGES = 'missing-edges'
METADATA = 'metadata'