Categorygithub.com/P4Networking/proto
modulepackage
1.0.0
Repository: https://github.com/p4networking/proto.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Constants

HW component is set to be in diag mode.
HW component is set to be disabled.
HW component is set to be enabled.
Default/invalid admin state.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Packets sent to the controller.
Packets sent to the sflow agent.
Default.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
16 MSBs of Ethernet CRC32.
16 LSBs of Ethernet CRC32.
16 MSBs of computed CRC32.
16 MSBs of Koopman CRC32.
16 LSBs of Koopman CRC32.
16 LSBs of computed CRC32.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The HW component is unhealthy.
The HW component is healthy.
Default/invalid health state.
Hardware is operational, but configured off.
Hardware is in a diagnostic mode.
A hardware failure has been detected.
No hardware is present.
Hardware is present, but not powered on.
Hardware is present, but not yet operational.
Hardware is present, configured, and operational.
Hardware is present, but details (type/state) are unknown.
No description provided by the author
e.g.
No description provided by the author
Used when the color is undetermined.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
e.g.
No description provided by the author
Used when the state is undetermined.
Green/Red non-blinking LEDs (Front Panel, PSU, Fan).
Non-blinking Green LED and Red LED.
Non-blinking Green, Red LEDs controlled by multiple GPIO pins.
Green/Amber solid/blinking LEDs (10G interfaces).
Non-blinking Green, Red, and Yellow LEDs.
Non-blinking Green/Red and Green/Yellow LEDs.
Solid/blinking Green/Red and solid Yellow LED.
Unknown led type is regard as an config error.
No description provided by the author
New CFP adapter type used in UTP.
No description provided by the author
No description provided by the author
No description provided by the author
used by OCS like Palomar.
100G copper.
Google custom LR optics (non-IEEE LR).
IEEE LR4.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
round robin.
strict priority.
unknown (default).
weighted deficit round robin.
weighted round robin.
Stratum running as part of Sandcastle.
Stratum running in sim mode.
Standalone Stratum.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO(aghaffar): Add all the BCM and MLNX based platforms.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
default.
No description provided by the author
No description provided by the author
No description provided by the author
Port is down, which also means the link that the port is part is down as well.
Port has indicated some low-level failures.
Default/invalid oper state.
Port is up, which also means the link that the port is part is up as well.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Assured forwarding priority 1.
Assured forwarding priority 2.
Assured forwarding priority 3.
Assured forwarding priority 4.
Best effort at high packet loss.
Best effort.
Low-latency congestion-control queue (go/llq).
Low-latency congestion-control queue (go/llq).
Network control.
Network control.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The trunk member port may be up and receiving traffic, but egress traffic is blocked.
The trunk member port is up and forwarding traffic normally.
Default/invalid blocking state.
No description provided by the author
No description provided by the author
No description provided by the author
Trunk is empty or all the members of the trunk are either down or blocked.
Default/invalid trunk state.
Trunk is not empty and at least one member of the trunk is up and forwarding traffic (i.e.

# Variables

Enum value maps for AdminState.
Enum value maps for AdminState.
Enum value maps for Alarm_Severity.
Enum value maps for Alarm_Severity.
Enum value maps for ChassisConfigParams_TuntapConfig_Mode.
Enum value maps for ChassisConfigParams_TuntapConfig_Mode.
Enum value maps for FanDir.
Enum value maps for FanDir.
Enum value maps for FecMode.
Enum value maps for FecMode.
No description provided by the author
Enum value maps for GoogleConfig_BcmKnetIntfPurpose.
Enum value maps for GoogleConfig_BcmKnetIntfPurpose.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_HashBlock.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_HashBlock.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_HashField.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_HashField.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_HashSubBlock.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_HashSubBlock.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_Polynomial.
Enum value maps for GoogleConfig_BcmRtag7HashConfig_Polynomial.
Enum value maps for HealthState.
Enum value maps for HealthState.
Enum value maps for HwState.
Enum value maps for HwState.
Enum value maps for LedColor.
Enum value maps for LedColor.
Enum value maps for LedMode.
Enum value maps for LedMode.
Enum value maps for LedState.
Enum value maps for LedState.
Enum value maps for LedType.
Enum value maps for LedType.
Enum value maps for MediaType.
Enum value maps for MediaType.
Enum value maps for NodeConfigParams_QosConfig_SchedulingMode.
Enum value maps for NodeConfigParams_QosConfig_SchedulingMode.
Enum value maps for OperationMode.
Enum value maps for OperationMode.
Enum value maps for PhysicalPortType.
Enum value maps for PhysicalPortType.
Enum value maps for Platform.
Enum value maps for Platform.
Enum value maps for PortConfigParams_ModulationType.
Enum value maps for PortConfigParams_ModulationType.
Enum value maps for PortState.
Enum value maps for PortState.
Enum value maps for PsuType.
Enum value maps for PsuType.
Enum value maps for SfpModuleType.
Enum value maps for SfpModuleType.
Enum value maps for SfpType.
Enum value maps for SfpType.
Enum value maps for TrafficClass.
Enum value maps for TrafficClass.
Enum value maps for TriState.
Enum value maps for TriState.
Enum value maps for TrunkMemberBlockState.
Enum value maps for TrunkMemberBlockState.
Enum value maps for TrunkPort_TrunkType.
Enum value maps for TrunkPort_TrunkType.
Enum value maps for TrunkState.
Enum value maps for TrunkState.

# Structs

Wrapper around admin state of a HW component.
Wrapper around all the alarm related data.
Wrapper around the autoneg status of a port.
Chassis uniquely identifies a switch with a single management interface, one or more slots (aka linecards), and one or more switching nodes (aka chips) on each linecard.
ChassisConfig is the internal data structure that encapsulates the so called "config" pushed to the entire chassis.
Config-related parameters for the entire chassis.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DataRequest is a message used internally to request data about a component or a set of components through SwitchInterface.
No description provided by the author
No description provided by the author
No description provided by the author
Defined the data required to get a data for a chassis.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Defines the data required to get a data for a node.
No description provided by the author
No description provided by the author
Defines the data required to get a data for a port.
No description provided by the author
No description provided by the author
Defined the data required to get a data for a queue of a port.
No description provided by the author
DataResponse is a message used internally to return data about a component or a set of components, requested by DataRequest through SwitchInterface, to It is specifically used in ConfigMonitoringService.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Possible capabilities for a fan module.
Wrapper around the FEC mode.
Wrapper around the forwarding viability of a trunk member.
Frontpanel port info.
Config specific to Google-build chassis.
BcmBufferConfig defines the buffer carving config for a BCM unit.
No description provided by the author
No description provided by the author
No description provided by the author
This message encapsulates all the info required to setup KNET interfaces on a specific node.
KNET config for a single KNET interface on a node.
BcmRateLimitConfig specifies rate limit settings for a unit.
Specifies rate limit settings for a COS.
BcmRtag7HashConfig defines RTAG7 hash config for a unit.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
BcmRxConfig encapsulates all the data required to fully configure RX on a unit.
BcmDmaChannelConfig encapsulates all the data required to configure an RX DMA channel.
No description provided by the author
Wrapper around the hardware port.
Wrapper around the health indicator (usally translated to LED state) of a port.
Possible capabilities for a LED module.
Wrapper around mac address (for example LACP router MAC).
Node uniquely identifies a single switching node (aka chip) on a chassis linecard and all its flow-related and config-related parameters.
Config-related parameters for switching nodes (aka chips).
Per node L2-related configs.
Per node QoS configuration.
Internal priority to the egress CoS queue number map entry.
802.1p priority to internal priority map entry.
DSCP range to internal priority map entry.
Egress CoS queue number to egress service pool map entry.
Ingress priority group number to the ingress service pool map entry.
Internal priority to the ingress priority group number map entry.
Per internal priority scheduling config.
Internal priority to the traffic class map entry.
Per-VLAN configuration.
Wrapper around an optional debug info for a node/chip.
Flow-related parameters for for switching nodes (aka chips).
Wrapper around oper state of a port.
Config-related parameters for the ports (singleton and trunk ports).
Per port hash config.
Wrapper around all the per port counters.
Flow-related parameters for the ports (singleton and trunk ports).
PortGroup uniquely identifies an ECMP/WCMP port group.
No description provided by the author
Wrapper around per port per queue counters.
Wrapper around port speed of the port.
Possible Capabilities for a PSU.
A message requesting changing configuration parameters inside the HAL.
No description provided by the author
Data required to set info for a specific chassis.
No description provided by the author
Data required to set info for a specific node.
No description provided by the author
Data required to set info for a specific port.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
The module speed capability for a frontpanel port.
SingletonPort uniquely identifies a single physical port on a single chassis and all its flow-related and config-related parameters.
Wrapper around LACP system priority.
Possible capabilities for a thermal sensor module.
TrunkPort uniquely identifies a single trunk port on a single chassis and all its flow-related and config-related parameters.
No description provided by the author

# Type aliases

A generic enum for describing the administrative state (aka admin state) of a HW component.
No description provided by the author
No description provided by the author
Possible directions for a fan module.
FEC operational mode for a singleton port.
BcmKnetIntfPurpose defines which application will supposed to use a KNET interface defined on a unit and CPU queue.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A generic enum for describing the health state of a HW component, as seen by a remote telemetry agent or set by an SDN controller.
A generic enum for describing the state of HW components (e.g.
Possible color for LED lights.
Possible modes for a LED module.
Possible state for LED lights.
Different type of LED has different possible color & state conbination and different number & control value of control path.
The media type for a frontpanel port.
Scheduling mode.
Mode of operation of the stack.
Possible physcial types for a frontpanel port.
Target platforms (aka the type of the switch/chassis).
Modulation type for ports.
A enum for describing the operational state (aka oper state) of a singleton port.
Possible types for a PSU.
TODO(unknown): revise these enum as needed per ASIC integration currently maps to sff_module_type_t defined in sff.h.
TODO(unknown): revise these enum as needed per ASIC integration currently maps to sff_sfp_type_t defined in sff.h.
List of traffic classes (aka class of services).
Tri-state boolean for the case 'false' is not a default.
An enum for describing the traffic block state of a singleton port that is part of a trunk.
No description provided by the author
A enum for describing the operational state (aka oper state) of a trunk port.