community.general.onyx_ptp_interface (0.1.1) — module

Configures PTP on interface

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 interfaces configuration on Mellanox ONYX network devices.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: configure PTP interface
  onyx_ptp_interface:
    state: enabled
    name: Eth1/1
    delay_request: 0
    announce_interval: -2
    announce_timeout: 3

Inputs

    
name:
    description:
    - ethernet or vlan interface name that we want to configure PTP on it
    required: true

state:
    choices:
    - enabled
    - disabled
    default: enabled
    description:
    - Enable/Disable PTP on Interface

delay_request:
    description:
    - configure PTP delay request interval, Range 0-5

sync_interval:
    description:
    - configure PTP sync interval, Range -7--1

announce_timeout:
    description:
    - configure PTP announce setting for timeout, Range 2-10

announce_interval:
    description:
    - configure PTP announce setting for interval, Range -3-1

Outputs

commands:
  description: The list of configuration mode commands to send to the device.
  returned: always
  sample:
  - interface ethernet 1/16 ptp enable
  - interface ethernet 1/16 ptp delay-req interval 0
  - interface ethernet 1/16 ptp announce interval -1
  type: list