ansible.builtin.onyx_ptp_global (v2.9.27) — module

Configures PTP Global parameters

| "added in version" 2.8 of ansible.builtin"

Authors: Anas Badaha (@anasb)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

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