Debian Codegraph @

ansible_collections/community/general/plugins/doc_fragments/_openswitch.py

raw
1 # Copyright (c) 2015, Peter Sprygada <[email protected]>
2 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
3 # SPDX-License-Identifier: GPL-3.0-or-later
4
5 # Note that this doc fragment is **PRIVATE** to the collection. It can have breaking changes at any time.
6 # Do not use this from other collections or standalone plugins/modules!
7
8 from __future__ import annotations
9
10
11 class ModuleDocFragment:
12 # Standard files documentation fragment
13 DOCUMENTATION = r"""
14 options:
15 host:
16 description:
17 - Specifies the DNS host name or address for connecting to the remote device over the specified transport. The value
18 of host is used as the destination address for the transport. Note this argument does not affect the SSH argument.
19 type: str
20 port:
21 description:
22 - Specifies the port to use when building the connection to the remote device. This value applies to either O(transport=cli)
23 or O(transport=rest). The port value defaults to the appropriate transport common port if none is provided in the
24 task. (cli=22, http=80, https=443). Note this argument does not affect the SSH transport.
25 type: int
26 default: 0 (use common port)
27 username:
28 description:
29 - Configures the username to use to authenticate the connection to the remote device. This value is used to authenticate
30 either the CLI login or the eAPI authentication depending on which transport is used. Note this argument does not
31 affect the SSH transport. If the value is not specified in the task, the value of environment variable E(ANSIBLE_NET_USERNAME)
32 is used instead.
33 type: str
34 password:
35 description:
36 - Specifies the password to use to authenticate the connection to the remote device. This is a common argument used
37 for either O(transport=cli) or O(transport=rest). Note this argument does not affect the SSH transport. If the value
38 is not specified in the task, the value of environment variable E(ANSIBLE_NET_PASSWORD) is used instead.
39 type: str
40 timeout:
41 description:
42 - Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands.
43 If the timeout is exceeded before the operation is completed, the module fails.
44 type: int
45 default: 10
46 ssh_keyfile:
47 description:
48 - Specifies the SSH key to use to authenticate the connection to the remote device. This argument is only used for O(transport=cli).
49 If the value is not specified in the task, the value of environment variable E(ANSIBLE_NET_SSH_KEYFILE) is used instead.
50 type: path
51 transport:
52 description:
53 - Configures the transport connection to use when connecting to the remote device. The transport argument supports connectivity
54 to the device over SSH (V(ssh)), CLI (V(cli)), or REST (V(rest)).
55 required: true
56 type: str
57 choices: [cli, rest, ssh]
58 default: ssh
59 use_ssl:
60 description:
61 - Configures the O(transport) to use SSL if set to V(true) only when the O(transport) argument is configured as rest.
62 If the transport argument is not V(rest), this value is ignored.
63 type: bool
64 default: true
65 provider:
66 description:
67 - Convenience method that allows all C(openswitch) arguments to be passed as a dict object. All constraints (required,
68 choices, and so on) must be met either by individual arguments or values in this dict.
69 type: dict
70 """