InterfaceEndpoint
¶
Bases: BaseEndpoint
Provides interface-related configuration and status management endpoints for Alcatel-Lucent OmniSwitch using MIB-based REST API.
admin_disable(port)
¶
Disable administrative state of the interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
autoneg_disable(port)
¶
Disable auto-negotiation on the interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
autoneg_enable(port)
¶
Enable auto-negotiation on the interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
clear_statistics(target, stat_type, cli_only=False)
¶
Clear interface statistics counters (Layer 2 or TDR).
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
clear_violation(target, is_linkagg=False)
¶
Clears all the MAC address violation logs for a specified port or link aggregate.
| Parameters: |
|
|---|
| Returns: |
|
|---|
epp_disable(port)
¶
Disable EPP on the interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
epp_enable(port)
¶
Enable EPP on the interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
flood_control(limit=200)
¶
Retrieve broadcast, unicast, and multicast storm control settings.
| Parameters: |
|
|---|
| Returns: |
|
|---|
get_interface(port)
¶
Retrieve detailed status of a specific port.
| Parameters: |
|
|---|
| Returns: |
|
|---|
globalPTPConfig()
¶
Retrieve the global PTP (Precision Time Protocol) configuration.
| Returns: |
|
|---|
globalPVR()
¶
Retrieve global PVR configuration values.
| Returns: |
|
|---|
link_monitoring_config(limit=200)
¶
Retrieve link monitoring settings per interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
link_monitoring_statistic(limit=200)
¶
Retrieve real-time and cumulative link monitoring statistics for all interfaces.
| Parameters: |
|
|---|
| Returns: |
|
|---|
list(limit=200)
¶
Retrieve the list of ESM port configurations using the MIB-based REST API.
| Parameters: |
|
|---|
| Returns: |
|
|---|
portMappingConfig(limit=200)
¶
Retrieve port mapping table entries.
| Parameters: |
|
|---|
| Returns: |
|
|---|
portMappingSession(limit=200)
¶
Retrieve entries from the Port Mapping Session Table.
| Parameters: |
|
|---|
| Returns: |
|
|---|
port_mirroring_destination(limit=200)
¶
Retrieve mirror destination port configuration.
| Parameters: |
|
|---|
| Returns: |
|
|---|
port_mirroring_sessions(limit=200)
¶
Retrieve mirror session configuration and status from the switch.
| Parameters: |
|
|---|
| Returns: |
|
|---|
port_mirroring_source(limit=200)
¶
Retrieve source port configuration for mirror sessions.
| Parameters: |
|
|---|
| Returns: |
|
|---|
port_monitoring_config(limit=200)
¶
Retrieve monitor source port configuration from the switch.
| Parameters: |
|
|---|
| Returns: |
|
|---|
port_monitoring_session(limit=200)
¶
Retrieve monitor session information.
| Parameters: |
|
|---|
| Returns: |
|
|---|
port_violation_status(limit=200)
¶
Retrieve port violation events with details like reason, action, and retry status.
| Parameters: |
|
|---|
| Returns: |
|
|---|
ptpPortConfig(limit=200)
¶
Retrieve PTP administrative status for all switch ports.
| Parameters: |
|
|---|
| Returns: |
|
|---|
recovery_port_config(limit=200)
¶
Retrieve PVR configuration for each interface using MIB-based GET.
| Parameters: |
|
|---|
| Returns: |
|
|---|
setInterfaceAdminStatus(ifindex, admin_status=1)
¶
Set the administrative status of a specific interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
setInterfaceAlias(ifindex, alias)
¶
Set the Alias of a specific interface.
| Parameters: |
|
|---|
| Returns: |
|
|---|
set_alias(port, alias)
¶
Set or clear the alias (description) for a single port.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_ddm_status(state)
¶
Configures the Digital Diagnostics Monitoring (DDM) administrative status.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_duplex(target, mode)
¶
Set duplex mode for a port, port range, or slot.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_eee(target, state)
¶
Enables or disables Energy Efficient Ethernet (EEE) on the specified port(s) or slot.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_flood_limit(target, traffic_type, rate_mode, rate_value, low_threshold=None)
¶
Configure flood limit settings for broadcast, multicast, unknown unicast, or all traffic types.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_flood_limit_action(target, traffic_type, action)
¶
Configure the action taken when flood rate limits are violated for a given traffic type.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_hybrid_mode(target, mode)
¶
Configures the mode of a combo port to either fiber or copper.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_ingress_bandwidth(target, action)
¶
Configures ingress bandwidth settings on the specified slot or port(s).
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_interface(port, parameter, value)
¶
Set an interface parameter and return updated status for all affected ports.
| Parameters: |
|
|---|
| Returns: |
|
|---|
set_link_trap(target, state)
¶
Enables or disables link trap messages on the specified interface(s).
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_loopback(port, enable=True)
¶
Enables or disables loopback mode for the specified front-panel port.
| Parameters: |
|
|---|
| Returns: |
|
|---|
set_max_frame_size(target, size)
¶
Configure the maximum frame size on a port or slot.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_portgroup_speed(port_group_number, slot, group_range, speed)
¶
Configures the speed of the ports within a port group.
| Parameters: |
|
|---|
| Returns: |
|
|---|
set_speed(target, speed)
¶
Set the speed for one or more interfaces.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_violation_recovery_maximum(scope, value, target=None)
¶
Configures the maximum number of recovery attempts for MAC address violation recovery.
| Parameters: |
|
|---|
| Returns: |
|
|---|
set_wait_to_restore(target, value)
¶
Configures the wait-to-restore timer for the specified slot or port(s). This timer delays the notification of a link-up event.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
set_wait_to_shutdown(target, value)
¶
Configures the wait-to-shutdown timer for the specified slot or port(s). This timer delays the notification of a link-down event.
| Parameters: |
|
|---|
| Returns: |
|
|---|
| Raises: |
|
|---|
show_interface_accounting(port)
¶
Retrieve detailed status or accounting of a specific port or port range.
| Parameters: |
|
|---|
| Returns: |
|
|---|
show_interface_capability(port)
¶
Retrieve detailed status or capability of a specific port or port range.
| Parameters: |
|
|---|
| Returns: |
|
|---|
show_interface_counters(port)
¶
Retrieve detailed status or counter of a specific port or port range.
| Parameters: |
|
|---|
| Returns: |
|
|---|
show_interface_counters_errors(port)
¶
Retrieve detailed error counters of a specific port or port range.
| Parameters: |
|
|---|
| Returns: |
|
|---|
statistic_collisions(limit=200)
¶
Retrieve Ethernet collision stats using the MIB-based REST API.
| Parameters: |
|
|---|
| Returns: |
|
|---|
statistic_counter(limit=200)
¶
Retrieve real-time interface traffic rates and pause frame stats.
| Parameters: |
|
|---|
| Returns: |
|
|---|
statistic_errors_counter(limit=200)
¶
Retrieve Ethernet error statistics such as alignment errors, FCS errors, and oversized/undersized frames.
| Parameters: |
|
|---|
| Returns: |
|
|---|
statistic_packets(limit=200)
¶
Retrieve interface statistics (standard + FC-specific) from ifTable.
| Parameters: |
|
|---|
| Returns: |
|
|---|
statistic_packets_counter(limit=200)
¶
Retrieve high-capacity traffic and pause frame counters from alcetherStatsTable.
| Parameters: |
|
|---|
| Returns: |
|
|---|
statistic_traffic(if_type=6, limit=200)
¶
Retrieve high-capacity interface traffic statistics from ifXTable.
| Parameters: |
|
|---|
| Returns: |
|
|---|
status(limit=200)
¶
Retrieve detailed ESM port operational status using the MIB-based REST API.
| Parameters: |
|
|---|
| Returns: |
|
|---|