104 lines
3.2 KiB
Python
104 lines
3.2 KiB
Python
# vim: tabstop=4 shiftwidth=4 softtabstop=4
|
|
#
|
|
# Copyright 2011 Cisco Systems, 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.
|
|
#
|
|
# @author: Sumit Naiksatam, Cisco Systems, Inc.
|
|
#
|
|
|
|
PLUGINS = 'PLUGINS'
|
|
|
|
PORT_STATE = 'port-state'
|
|
PORT_UP = "UP"
|
|
PORT_DOWN = "DOWN"
|
|
|
|
ATTACHMENT = 'attachment'
|
|
PORT_ID = 'port-id'
|
|
|
|
NET_ID = 'net-id'
|
|
NET_NAME = 'net-name'
|
|
NET_PORTS = 'net-ports'
|
|
NET_VLAN_NAME = 'net-vlan-name'
|
|
NET_VLAN_ID = 'net-vlan-id'
|
|
NET_TENANTS = 'net-tenants'
|
|
|
|
TENANT_ID = 'tenant-id'
|
|
TENANT_NETWORKS = 'tenant-networks'
|
|
TENANT_NAME = 'tenant-name'
|
|
TENANT_PORTPROFILES = 'tenant-portprofiles'
|
|
TENANT_QOS_LEVELS = 'tenant-qos-levels'
|
|
TENANT_CREDENTIALS = 'tenant-credentials'
|
|
|
|
PORT_PROFILE = 'port-profile'
|
|
PROFILE_ID = 'profile-id'
|
|
PROFILE_NAME = 'profile-name'
|
|
PROFILE_VLAN_NAME = 'profile-vlan-name'
|
|
PROFILE_VLAN_ID = 'vlan-id'
|
|
PROFILE_QOS = 'profile-qos'
|
|
PROFILE_ASSOCIATIONS = 'assignment'
|
|
|
|
QOS_LEVEL_ID = 'qos-id'
|
|
QOS_LEVEL_NAME = 'qos-name'
|
|
QOS_LEVEL_ASSOCIATIONS = 'qos-level-associations'
|
|
QOS_LEVEL_DESCRIPTION = 'qos-desc'
|
|
|
|
CREDENTIAL_ID = 'credential-id'
|
|
CREDENTIAL_NAME = 'credential-name'
|
|
CREDENTIAL_USERNAME = 'credential-username'
|
|
CREDENTIAL_PASSWORD = 'credential-password'
|
|
MASKED_PASSWORD = '********'
|
|
|
|
USERNAME = 'username'
|
|
PASSWORD = 'password'
|
|
|
|
LOGGER_COMPONENT_NAME = "cisco_plugin"
|
|
|
|
BLADE_INTF_DN = "blade-intf-distinguished-name"
|
|
BLADE_INTF_ORDER = "blade-intf-order"
|
|
BLADE_INTF_LINK_STATE = "blade-intf-link-state"
|
|
BLADE_INTF_OPER_STATE = "blade-intf-operational-state"
|
|
BLADE_INTF_INST_TYPE = "blade-intf-inst-type"
|
|
BLADE_INTF_RHEL_DEVICE_NAME = "blade-intf-rhel-device-name"
|
|
BLADE_INTF_DYNAMIC = "dynamic"
|
|
BLADE_INTF_STATE_UNKNOWN = "unknown"
|
|
BLADE_INTF_STATE_UNALLOCATED = "unallocated"
|
|
BLADE_INTF_RESERVED = "blade-intf-reserved"
|
|
BLADE_INTF_UNRESERVED = "blade-intf-unreserved"
|
|
BLADE_INTF_RESERVATION = "blade-intf-reservation-status"
|
|
BLADE_UNRESERVED_INTF_COUNT = "blade-unreserved-interfaces-count"
|
|
BLADE_INTF_DATA = "blade-intf-data"
|
|
|
|
LEAST_RSVD_BLADE_UCSM = "least-reserved-blade-ucsm"
|
|
LEAST_RSVD_BLADE_CHASSIS = "least-reserved-blade-chassis"
|
|
LEAST_RSVD_BLADE_ID = "least-reserved-blade-id"
|
|
LEAST_RSVD_BLADE_DATA = "least-reserved-blade-data"
|
|
|
|
RESERVED_NIC_HOSTNAME = "reserved-dynamic-nic-hostname"
|
|
RESERVED_NIC_NAME = "reserved-dynamic-nic-device-name"
|
|
|
|
RESERVED_INTERFACE_UCSM = "reserved-interface-ucsm-ip"
|
|
RESERVED_INTERFACE_CHASSIS = "reserved-interface-chassis"
|
|
RESERVED_INTERFACE_BLADE = "reserved-interface-blade"
|
|
RESERVED_INTERFACE_DN = "reserved-interface-dn"
|
|
|
|
RHEL_DEVICE_NAME_REPFIX = "eth"
|
|
|
|
UCS_PLUGIN = 'ucs_plugin'
|
|
NEXUS_PLUGIN = 'nexus_plugin'
|
|
|
|
PLUGIN_OBJ_REF = 'plugin-obj-ref'
|
|
PARAM_LIST = 'param-list'
|
|
|
|
DEVICE_IP = 'device-ip'
|