Files
vmware-nsx/vmware_nsx/shell/admin/plugins/common/constants.py
Abhishek Raut abb4846464 [Admin-Util]: Add support to list missing edges for NSXv plugin
This patch adds support to list missing-edges for NSXv plugin.
Missing edges are those edges which are present in the Neutron DB
but are not present on the NSX-v backend.

Usage:
nsxadmin -o list -r missing-edges
NSX Plugin in use: nsxv
==== [NSX] List Missing Edges ====
NSXv edges present in Neutron DB but not present on the NSXv backend

missing-edges
+----------+
| edge_id  |
+----------+
| edge-121 |
+----------+

DocImpact

Change-Id: I19d6356694012ef9d050b5b8a179a11e438b7b3f
2016-04-05 16:04:36 -07:00

36 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 = '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'
NETWORKS = 'networks'