community.general.onyx_ptp_global (0.1.1) — module

Configures PTP Global parameters

Authors: Anas Badaha (@anasb)

preview | supported by community

Install collection

Install with ansible-galaxy collection install community.general:==0.1.1


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.1

Description

This module provides declarative management of PTP Global configuration on Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure PTP
  onyx_ptp_global:
    ntp_state: enabled
    ptp_state: disabled
    domain: 127
    primary_priority: 128
    secondary_priority: 128

Inputs

    
domain:
    description:
    - set PTP domain number Range 0-127

ntp_state:
    choices:
    - enabled
    - disabled
    description:
    - NTP state.

ptp_state:
    choices:
    - enabled
    - disabled
    default: enabled
    description:
    - PTP state.

primary_priority:
    description:
    - set PTP primary priority Range 0-225

secondary_priority:
    description:
    - set PTP secondary priority Range 0-225

Outputs

commands:
  description: The list of configuration mode commands to send to the device.
  returned: always
  sample:
  - no ntp enable
  - protocol ptp
  - ptp domain 127
  type: list