Module: Cisco

Defined in:
lib/cisco_node_utils.rb,
lib/cisco_node_utils/ace.rb,
lib/cisco_node_utils/acl.rb,
lib/cisco_node_utils/bgp.rb,
lib/cisco_node_utils/pim.rb,
lib/cisco_node_utils/vdc.rb,
lib/cisco_node_utils/vpc.rb,
lib/cisco_node_utils/vrf.rb,
lib/cisco_node_utils/vtp.rb,
lib/cisco_node_utils/yum.rb,
lib/cisco_node_utils/node.rb,
lib/cisco_node_utils/vlan.rb,
lib/cisco_node_utils/yang.rb,
lib/cisco_node_utils/banner.rb,
lib/cisco_node_utils/bgp_af.rb,
lib/cisco_node_utils/client.rb,
lib/cisco_node_utils/logger.rb,
lib/cisco_node_utils/vrf_af.rb,
lib/cisco_node_utils/feature.rb,
lib/cisco_node_utils/upgrade.rb,
lib/cisco_node_utils/evpn_vni.rb,
lib/cisco_node_utils/hostname.rb,
lib/cisco_node_utils/platform.rb,
lib/cisco_node_utils/snmpuser.rb,
lib/cisco_node_utils/constants.rb,
lib/cisco_node_utils/interface.rb,
lib/cisco_node_utils/node_util.rb,
lib/cisco_node_utils/route_map.rb,
lib/cisco_node_utils/snmpgroup.rb,
lib/cisco_node_utils/bfd_global.rb,
lib/cisco_node_utils/dns_domain.rb,
lib/cisco_node_utils/exceptions.rb,
lib/cisco_node_utils/ntp_config.rb,
lib/cisco_node_utils/ntp_server.rb,
lib/cisco_node_utils/snmpserver.rb,
lib/cisco_node_utils/stp_global.rb,
lib/cisco_node_utils/vxlan_vtep.rb,
lib/cisco_node_utils/domain_name.rb,
lib/cisco_node_utils/environment.rb,
lib/cisco_node_utils/hsrp_global.rb,
lib/cisco_node_utils/itd_service.rb,
lib/cisco_node_utils/name_server.rb,
lib/cisco_node_utils/router_ospf.rb,
lib/cisco_node_utils/bgp_neighbor.rb,
lib/cisco_node_utils/ip_multicast.rb,
lib/cisco_node_utils/ntp_auth_key.rb,
lib/cisco_node_utils/object_group.rb,
lib/cisco_node_utils/span_session.rb,
lib/cisco_node_utils/bridge_domain.rb,
lib/cisco_node_utils/encapsulation.rb,
lib/cisco_node_utils/radius_global.rb,
lib/cisco_node_utils/radius_server.rb,
lib/cisco_node_utils/snmpcommunity.rb,
lib/cisco_node_utils/syslog_server.rb,
lib/cisco_node_utils/tacacs_global.rb,
lib/cisco_node_utils/tacacs_server.rb,
lib/cisco_node_utils/evpn_multicast.rb,
lib/cisco_node_utils/evpn_multisite.rb,
lib/cisco_node_utils/interface_ospf.rb,
lib/cisco_node_utils/overlay_global.rb,
lib/cisco_node_utils/pim_group_list.rb,
lib/cisco_node_utils/pim_rp_address.rb,
lib/cisco_node_utils/vxlan_vtep_vni.rb,
lib/cisco_node_utils/bgp_neighbor_af.rb,
lib/cisco_node_utils/cisco_cmn_utils.rb,
lib/cisco_node_utils/router_ospf_vrf.rb,
lib/cisco_node_utils/syslog_facility.rb,
lib/cisco_node_utils/syslog_settings.rb,
lib/cisco_node_utils/vlan_DEPRECATED.rb,
lib/cisco_node_utils/bgp_af_aggr_addr.rb,
lib/cisco_node_utils/configparser_lib.rb,
lib/cisco_node_utils/itd_device_group.rb,
lib/cisco_node_utils/router_ospf_area.rb,
lib/cisco_node_utils/snmpnotification.rb,
lib/cisco_node_utils/bridge_domain_vni.rb,
lib/cisco_node_utils/command_reference.rb,
lib/cisco_node_utils/dhcp_relay_global.rb,
lib/cisco_node_utils/evpn_stormcontrol.rb,
lib/cisco_node_utils/fabricpath_global.rb,
lib/cisco_node_utils/object_group_entry.rb,
lib/cisco_node_utils/portchannel_global.rb,
lib/cisco_node_utils/tacacs_server_host.rb,
lib/cisco_node_utils/fabricpath_topology.rb,
lib/cisco_node_utils/radius_server_group.rb,
lib/cisco_node_utils/tacacs_server_group.rb,
lib/cisco_node_utils/interface_DEPRECATED.rb,
lib/cisco_node_utils/interface_hsrp_group.rb,
lib/cisco_node_utils/interface_portchannel.rb,
lib/cisco_node_utils/interface_service_vni.rb,
lib/cisco_node_utils/itd_device_group_node.rb,
lib/cisco_node_utils/router_ospf_area_vlink.rb,
lib/cisco_node_utils/interface_channel_group.rb,
lib/cisco_node_utils/aaa_authentication_login.rb,
lib/cisco_node_utils/interface_evpn_multisite.rb,
lib/cisco_node_utils/aaa_authorization_service.rb,
lib/cisco_node_utils/snmp_notification_receiver.rb,
lib/cisco_node_utils/aaa_authentication_login_service.rb

Overview

Add some interface-specific constants to the Cisco namespace

Defined Under Namespace

Modules: ConfigParser, Logger Classes: AaaAuthenticationLogin, AaaAuthenticationLoginService, AaaAuthorizationService, Ace, Acl, AuthenticationFailed, Banner, BfdGlobal, BridgeDomain, BridgeDomainVNI, ChefUtils, CiscoError, CliError, Client, ClientError, CmdRef, CommandReference, ConnectionRefused, DhcpRelayGlobal, DnsDomain, DomainName, Encapsulation, Encryption, Environment, EvpnMulticast, EvpnMultisite, EvpnStormcontrol, EvpnVni, FabricpathGlobal, FabricpathTopo, Feature, HostName, HsrpGlobal, Interface, InterfaceChannelGroup, InterfaceDeprecated, InterfaceEvpnMultisite, InterfaceHsrpGroup, InterfaceOspf, InterfacePortChannel, InterfaceServiceVni, IpMulticast, ItdDeviceGroup, ItdDeviceGroupNode, ItdService, NameServer, Node, NodeUtil, NtpAuthKey, NtpConfig, NtpServer, ObjectGroup, ObjectGroupEntry, OverlayGlobal, Pim, PimGroupList, PimRpAddress, Platform, PortChannelGlobal, RadiusGlobal, RadiusServer, RadiusServerGroup, RequestFailed, RequestNotSupported, RouteMap, RouterBgp, RouterBgpAF, RouterBgpAFAggrAddr, RouterBgpNeighbor, RouterBgpNeighborAF, RouterOspf, RouterOspfArea, RouterOspfAreaVirtualLink, RouterOspfVrf, SnmpCommunity, SnmpGroup, SnmpNotification, SnmpNotificationReceiver, SnmpServer, SnmpUser, SpanSession, StpGlobal, SyslogFacility, SyslogServer, SyslogSettings, TacacsGlobal, TacacsServer, TacacsServerGroup, TacacsServerHost, UnsupportedCmdRef, UnsupportedError, Upgrade, Utils, Vdc, Vlan, VlanDeprecated, Vpc, Vrf, VrfAF, Vtp, VxlanVtep, VxlanVtepVni, Yang, YangError, Yum

Constant Summary collapse

VLAN_NAME_SIZE =
33
PLATFORMS =
[
  # Cisco IOS XR
  :ios_xr,
  # Cisco NX-OS (Nexus switches)
  :nexus,
]
DATA_FORMATS =
[
  # Cisco CLI. Indentation is significant.
  :cli,
  # Structured data format specific to NX-API
  :nxapi_structured,
  # YANG JSON
  :yang_json,
]
YANG_SET_MODE =
[
  :merge_config,
  :replace_config,
  :delete_config,
]
IF_SWITCHPORT_MODE =
{
  disabled:   '',
  access:     'access',
  trunk:      'trunk',
  fex_fabric: 'fex-fabric',
  tunnel:     'dot1q-tunnel',
  fabricpath: 'fabricpath',
}
IF_DEPRECATED =

REMOVE THIS HASH WITH RELEASE 2.0.0

{
  host:        'host',
  promiscuous: 'promiscuous',
  secondary:   'secondary',
}
TACACS_SERVER_ENC_NONE =
0
TACACS_SERVER_ENC_CISCO_TYPE_7 =
7
TACACS_SERVER_ENC_UNKNOWN =
8
DEFAULT_INSTANCE_NAME =

global constants

'default'