
To run this: nsxadmin -r routers -o list-mismatches Positive output example: All routers exist on the NSX manager Negative output example: Found 1 routers missing from the NSX manager +------+--------------------------------------+--------------------------------------+ | name | neutron_id | nsx_id | +------+--------------------------------------+--------------------------------------+ | rtr2 | faf48970-444b-4d9e-9e88-952246c635c7 | bf2a1965-299f-4714-8925-9b9c82e2c9e8 | +------+--------------------------------------+--------------------------------------+ Change-Id: I163dae3d1eecf6afc075cbc0e7020cd1cfb87af2
41 lines
1.3 KiB
Python
41 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'
|
|
ROUTERS = 'routers'
|
|
|
|
# NSXV3 Resource Constants
|
|
FIREWALL_SECTIONS = 'firewall-sections'
|
|
FIREWALL_NSX_GROUPS = 'nsx-security-groups'
|
|
SECURITY_GROUPS = 'security-groups'
|
|
PORTS = 'ports'
|
|
|
|
# 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'
|