Skip to main content

MFD Const

Module for keeping const values.

Available data structures

  • DEVICE_IDS - family: device_id mapping like "CPK": ["0xF0A5", "0xF0A5"]
  • DEVID_CLASS_MAP_NICINSTALLER - speed: device_id mapping.
  • DRIVER_DIRECTORY_MAP - driver: directory mapping like "ice": "PROCGB"
  • DRIVER_DEVICE_ID_MAP - driver: device_id mapping like "ice": {DeviceID(0x124C), DeviceID(0x124D)}
  • SPEED_IDS- speed: device_id mapping like "@1G": DEVICE_IDS["PVL"]
  • Family - Enum class of available families like Family.PVL
  • family_to_full_name - Dict with mapping Family to full name like Family.CVL: "Columbiaville"
  • Speed- Enum class of available speeds like Speed.G100
  • FREEBSD_ADVERTISE_SPEED- advertise_speed: speed mapping like "1G": {"ice": 0x4, "ixl": 0x2, "ix": 0x2}
  • MANAGEMENT_NETWORK - list of networks used for management connection
  • LOCAL_DEFAULT_MAP (qos.py) - QoS Default map for DCB local settings
  • LOCAL_ISCSI_MAP (qos.py) - ISCSI map for QoS
  • SAN_DCB_MAP (qos.py) - SAN DCB map for QoS
  • ALT_SAN_DCB (qos.py) - ALT SAN DCB map for QoS
  • ISCSI_POLICY (qos.py) - ISCSI Policy
  • FreeBSDDriverNames - Enum class of FreeBSD Driver Names
  • DESIGNED_NUMBER_VFS_BY_SPEED - Designed number of VFs for every speed class, like for 100G NIC is designed 256 VFs
  • SUPPORTED_ADAPTER_RESET_TYPES - Supporting reset types for NIC.
  • Milestone - Enum class of available milestones like Milestone.PV

Usage

from mfd_const import SPEED_IDS
logger.info(f"Device ids for 1G == {SPEED_IDS['@1G']}")

from mfd_const import FREEBSD_ADVERTISE_SPEED
logger.info(f"Value for 1G advertise speed on ix driver is: {FREEBSD_ADVERTISE_SPEED['1G']['ix']}")

from mfd_const import MANAGEMENT_NETWORK
from ipaddress import IPv4Interface
ip = IPv4Interface("10.10.10.10")
for mng_sub in MANAGEMENT_NETWORK:
    if ip in mng_sub:
    logger.info(f"{ip} is management IP.")

# To apply DCB settings related to QOS, please use the flags as below.
from mfd_const.qos import (LOCAL_PFC, LOCAL_DEFAULT_MAP)
res = dcb.verify_dcb(LOCAL_DEFAULT_MAP)
    if res:
        logger.info("DCB Configuration sustains the local settings")

qos

Temporary path for copying tools from SUT/Controller to any host under test DCB_TOOL_PATH_LNX : Path for dcbnl.py - Netlink message generation/parsing script

Issue reporting

If you encounter any bugs or have suggestions for improvements, you're welcome to contribute directly or open an issue here.

Metadata

Release files for mfd-const 0.27.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mfd-const 0.27.0
File Interpreter ABI Platform Actions
mfd_const-0.27.0-py3-none-any.whl Python 3 none any Details for mfd_const-0.27.0-py3-none-any.whl

Release files / mfd_const-0.27.0-py3-none-any.whl

Download URL mfd_const-0.27.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ae02969c255dbabde1361b10ff4ae79c0231407ae5bc8c5d1722e73056617a2
BLAKE2b-256 checksum
How to use checksums
7594d3e06d0b5a42a11a0d97924a2d4e01a67375f1bd8cd54464af0930339ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for mfd-const 0.27.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page