Skip to content

Commit

Permalink
ansible-doc: fix EXAMPLE to be yaml valid
Browse files Browse the repository at this point in the history
  • Loading branch information
alagoutte committed Feb 28, 2023
1 parent 446a8d0 commit 41ff500
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 19 deletions.
4 changes: 0 additions & 4 deletions plugins/modules/nsxt_deploy_ova.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@
description: Name of VM
required: true
type: 'str'
hostname:
description: Name of host
required: true
type: 'str'
dns_server:
description: DNS server address
required: true
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/nsxt_manager_auto_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@
validate_certs: False
deployment_requests:
- roles:
- MANAGER
- CONTROLLER
- MANAGER:
- CONTROLLER:
form_factor: "MEDIUM"
user_settings:
cli_password: "Admin!23Admin"
Expand All @@ -95,11 +95,11 @@
- ip_addresses:
- 10.112.201.25
prefix_length: "19"
management_port_ipv6_subnets:
management_port_ipv6_subnets:
- ip_addresses:
- 2620:124:6020:1045::1c
prefix_length: "64"
default_ipv6_gateway_addresses:
default_ipv6_gateway_addresses:
- 2620:124:6020:1045::253
state: present
'''
Expand Down
7 changes: 4 additions & 3 deletions plugins/modules/nsxt_policy_segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,9 @@
65 NIS+-Server-Addr
66 TFTP Server-Name (used by PXE)
67 Bootfile-Name (used by PXE)
93 PXE: Client system architecture
94 PXE: Client NDI
97 PXE: UUID/UNDI
93 PXE Client system architecture
94 PXE Client NDI
97 PXE UUID/UNDI
117 Name Service Search
119 Domain Search
150 TFTP server address (used by PXE)
Expand Down Expand Up @@ -521,6 +521,7 @@
allocation ranges
type: list
preferred_time:
description:
- Property of SegmentDhcpV6Config
- The length of time that a valid address is
preferred. When the preferred lifetime expires,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/nsxt_transport_node_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

EXAMPLES = '''
- name: Create transport node collection
nsxt_transport_node_collections:
nsxt_transport_node_collections:
hostname: "{{hostname}}"
username: "{{username}}"
password: "{{password}}"
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/nsxt_transport_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
required: false
type: boolean
ipv6_assignment_type:
description: 'Its enum which will have value as 'STATIC', this variable is explicitly for Edge TN creation'
description: "Its enum which will have value as 'STATIC', this variable is explicitly for Edge TN creation"
required: false
type: str
compute:
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/nsxt_uplink_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,16 +142,16 @@
username: "admin"
password: "Admin!23Admin"
validate_certs: False
display_name: "uplinkProfile1",
display_name: "uplinkProfile1"
mtu: 1600,
resource_type: "UplinkHostSwitchProfile",
resource_type: "UplinkHostSwitchProfile"
teaming:
active_list:
- uplink_name: "uplink-1"
uplink_type: PNIC
policy: FAILOVER_ORDER
transport_vlan: 0,
state: "present",
transport_vlan: 0
state: "present"
'''

RETURN = '''# '''
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/nsxt_vidm.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@
username: "admin"
password: "Admin!23Admin"
validate_certs: False
client_id: "OAuth2Client_NsxClientId",
client_id: "OAuth2Client_NsxClientId"
client_secret: "23424234234234"
host_name: "lbhost_vidm.eng.vmware.com",
host_name: "lbhost_vidm.eng.vmware.com"
lb_enable: False
node_host_name: "jt-vidm.eng.vmware.com"
thumbprint: "898b75618e3e56615d53f987a720ff22b6381f4b85bec1eb973214ff7361f8b8"
Expand Down

0 comments on commit 41ff500

Please sign in to comment.