summaryrefslogtreecommitdiff
path: root/docs/vyos.vyos.vyos_lldp_interfaces_module.rst
diff options
context:
space:
mode:
authorGaige B Paulsen <gaige@cluetrust.com>2024-11-25 16:08:54 -0500
committerGitHub <noreply@github.com>2024-11-25 16:08:54 -0500
commitbf38875af0a7e5166ce0330f16441b7d8b434e6a (patch)
treea01b371d37ae88136eec0d50868da6aebcea1414 /docs/vyos.vyos.vyos_lldp_interfaces_module.rst
parent04c837af1cf89ff42adc42062df48a0dd209a0e1 (diff)
downloadvyos.vyos-bf38875af0a7e5166ce0330f16441b7d8b434e6a.tar.gz
vyos.vyos-bf38875af0a7e5166ce0330f16441b7d8b434e6a.zip
T6910: fix documentation and argspecs are out of alignment (#358)
chore: update firewall_rules from module fix: update firewall_global from resource model chore: update to sync with resource module chore: update README fix: comment and formatting fix: formatting issues fix: missing imports fix: import and metadata violations fix: interface fixes fix: move the arg spec comment fix: update interface docs fix: remove comments for non-RM versions * T6910: fix documentation and argspecs * T6910: docs: update per review * T6910: docs: fix missing pipe
Diffstat (limited to 'docs/vyos.vyos.vyos_lldp_interfaces_module.rst')
-rw-r--r--docs/vyos.vyos.vyos_lldp_interfaces_module.rst222
1 files changed, 113 insertions, 109 deletions
diff --git a/docs/vyos.vyos.vyos_lldp_interfaces_module.rst b/docs/vyos.vyos.vyos_lldp_interfaces_module.rst
index d46c5064..78b0a73a 100644
--- a/docs/vyos.vyos.vyos_lldp_interfaces_module.rst
+++ b/docs/vyos.vyos.vyos_lldp_interfaces_module.rst
@@ -46,7 +46,7 @@ Parameters
<td>
</td>
<td>
- <div>A list of lldp interfaces configurations.</div>
+ <div>A list of LLDP interfaces configurations.</div>
</td>
</tr>
<tr>
@@ -66,7 +66,7 @@ Parameters
</ul>
</td>
<td>
- <div>to disable lldp on the interface.</div>
+ <div>Disable LLDP on the interfaces.</div>
</td>
</tr>
<tr>
@@ -132,6 +132,7 @@ Parameters
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">integer</span>
+ / <span style="color: red">required</span>
</div>
</td>
<td>
@@ -151,6 +152,7 @@ Parameters
<a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
<div style="font-size: small">
<span style="color: purple">string</span>
+ / <span style="color: red">required</span>
</div>
</td>
<td>
@@ -309,7 +311,7 @@ Parameters
<td>
</td>
<td>
- <div>Name of the lldp interface.</div>
+ <div>Name of the LLDP interface.</div>
</td>
</tr>
@@ -362,7 +364,7 @@ Notes
-----
.. note::
- - Tested against VyOS 1.1.8 (helium).
+ - Tested against VyOS 1.3.8
- This module works with connection ``ansible.netcommon.network_cli``. See `the VyOS OS Platform Options <../network/user_guide/platform_vyos.html>`_.
@@ -397,18 +399,19 @@ Examples
longitude: 222.267255W
latitude: 33.524449N
state: merged
-
#
#
# -------------------------
# Module Execution Result
# -------------------------
#
- # before": []
+ # before": {}
#
# "commands": [
# "set service lldp interface eth1 location civic-based country-code 'US'",
# "set service lldp interface eth1 location civic-based ca-type 0 ca-value 'ENGLISH'",
+ # "set service lldp interface eth1 location civic-based country-code 'US'",
+ # "set service lldp interface eth1 location civic-based ca-type 0 ca-value 'ENGLISH'",
# "set service lldp interface eth1",
# "set service lldp interface eth2 location coordinate-based latitude '33.524449N'",
# "set service lldp interface eth2 location coordinate-based altitude '2200'",
@@ -419,34 +422,33 @@ Examples
# "set service lldp interface eth2 location coordinate-based datum 'WGS84'",
# "set service lldp interface eth2 location coordinate-based longitude '222.267255W'",
# "set service lldp interface eth2"
+ # ]
#
- # "after": [
- # {
- # "location": {
- # "coordinate_based": {
- # "altitude": 2200,
- # "datum": "WGS84",
- # "latitude": "33.524449N",
- # "longitude": "222.267255W"
- # }
- # },
- # "name": "eth2"
- # },
- # {
- # "location": {
- # "civic_based": {
- # "ca_info": [
- # {
- # "ca_type": 0,
- # "ca_value": "ENGLISH"
- # }
- # ],
- # "country_code": "US"
- # }
- # },
- # "name": "eth1"
- # }
- # ],
+ # "after": {
+ # "location": {
+ # "coordinate_based": {
+ # "altitude": 2200,
+ # "datum": "WGS84",
+ # "latitude": "33.524449N",
+ # "longitude": "222.267255W"
+ # }
+ # },
+ # "name": "eth2"
+ # },
+ # {
+ # "location": {
+ # "civic_based": {
+ # "ca_info": [
+ # {
+ # "ca_type": 0,
+ # "ca_value": "ENGLISH"
+ # }
+ # ],
+ # "country_code": "US"
+ # }
+ # },
+ # "name": "eth1"
+ # }
#
# After state:
# -------------
@@ -540,33 +542,31 @@ Examples
# "set service lldp interface eth1 location coordinate-based longitude '222.267255W'"
# ]
#
- # "after": [
- # {
- # "location": {
- # "civic_based": {
- # "ca_info": [
- # {
- # "ca_type": 0,
- # "ca_value": "ENGLISH"
- # }
- # ],
- # "country_code": "US"
- # }
- # },
- # "name": "eth2"
+ # "after": {
+ # "location": {
+ # "civic_based": {
+ # "ca_info": [
+ # {
+ # "ca_type": 0,
+ # "ca_value": "ENGLISH"
+ # }
+ # ],
+ # "country_code": "US"
+ # }
# },
- # {
- # "location": {
- # "coordinate_based": {
- # "altitude": 2200,
- # "datum": "WGS84",
- # "latitude": "33.524449N",
- # "longitude": "222.267255W"
- # }
- # },
- # "name": "eth1"
- # }
- # ]
+ # "name": "eth2"
+ # },
+ # {
+ # "location": {
+ # "coordinate_based": {
+ # "altitude": 2200,
+ # "datum": "WGS84",
+ # "latitude": "33.524449N",
+ # "longitude": "222.267255W"
+ # }
+ # },
+ # "name": "eth1"
+ # }
#
# After state:
# -------------
@@ -612,49 +612,49 @@ Examples
# -------------------------
#
# "before": [
- # {
- # "enable": false,
- # "location": {
- # "civic_based": {
- # "ca_info": [
- # {
- # "ca_type": 0,
- # "ca_value": "ENGLISH"
- # }
- # ],
- # "country_code": "US"
- # }
- # },
- # "name": "eth2"
- # },
- # {
- # "enable": false,
- # "location": {
- # "coordinate_based": {
- # "altitude": 2200,
- # "datum": "WGS84",
- # "latitude": "33.524449N",
- # "longitude": "222.267255W"
- # }
- # },
- # "name": "eth1"
+ # {
+ # "enable": false,
+ # "location": {
+ # "civic_based": {
+ # "ca_info": [
+ # {
+ # "ca_type": 0,
+ # "ca_value": "ENGLISH"
+ # }
+ # ],
+ # "country_code": "US"
# }
- # ]
- #
- # "commands": [
- # "delete service lldp interface eth2 location",
- # "delete service lldp interface eth2 disable",
- # "set service lldp interface eth2 location elin 0000000911"
+ # },
+ # "name": "eth2"
+ # },
+ # {
+ # "enable": false,
+ # "location": {
+ # "coordinate_based": {
+ # "altitude": 2200,
+ # "datum": "WGS84",
+ # "latitude": "33.524449N",
+ # "longitude": "222.267255W"
+ # }
+ # },
+ # "name": "eth1"
+ # }
+ # ]
#
+ # "commands": [
+ # "delete service lldp interface eth2 location",
+ # "delete service lldp interface eth2 disable",
+ # "set service lldp interface eth2 location elin 0000000911"
+ # ]
#
- # "after": [
- # {
- # "location": {
- # "elin": 0000000911
- # },
- # "name": "eth2"
- # }
- # ]
+ # "after": [
+ # {
+ # "location": {
+ # "elin": 0000000911
+ # },
+ # "name": "eth2"
+ # }
+ # ]
#
#
# After state
@@ -672,7 +672,7 @@ Examples
# vyos@vyos# run show configuration commands | grep lldp
# set service lldp interface eth2 location elin '0000000911'
#
- - name: Delete lldp interface attributes of given interfaces.
+ - name: Delete LLDP interface attributes of given interfaces.
vyos.vyos.vyos_lldp_interfaces:
config:
- name: eth2
@@ -683,11 +683,17 @@ Examples
# Module Execution Results
# ------------------------
#
- before: [{location: {elin: 0000000911}, name: eth2}]
- # "commands": [
- # "commands": [
- # "delete service lldp interface eth2"
- # ]
+ # "before": [
+ # {
+ # "location": {
+ # "elin": 0000000911
+ # },
+ # "name": "eth2"
+ # }
+ # ]
+ # "commands": [
+ # "delete service lldp interface eth2"
+ # ]
#
# "after": []
# After state
@@ -877,8 +883,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<div>The configuration as structured data after module completion.</div>
<br/>
<div style="font-size: smaller"><b>Sample:</b></div>
- <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
- of the parameters above.</div>
+ <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format of the parameters above.</div>
</td>
</tr>
<tr>
@@ -895,8 +900,7 @@ Common return values are documented `here <https://docs.ansible.com/ansible/late
<div>The configuration as structured data prior to module invocation.</div>
<br/>
<div style="font-size: smaller"><b>Sample:</b></div>
- <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format
- of the parameters above.</div>
+ <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">The configuration returned will always be in the same format of the parameters above.</div>
</td>
</tr>
<tr>