-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathoneview_logical_interconnect_facts.yml
160 lines (133 loc) · 5.11 KB
/
oneview_logical_interconnect_facts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
###
# Copyright (2016-2021) Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# You may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
###
---
- hosts: all
vars:
- config: "{{ playbook_dir }}/oneview_config.json"
- name: "LE-LIG" # change for the desired logical interconnect name
tasks:
- name: Gather facts about all Logical Interconnects
oneview_logical_interconnect_facts:
config: "{{ config }}"
delegate_to: localhost
- debug: var=logical_interconnects
- name: Gather paginated and sorted facts about Logical Interconnects
oneview_logical_interconnect_facts:
config: "{{ config }}"
params:
start: 0
count: 3
sort: 'name:descending'
- debug: var=logical_interconnects
- name: Gather facts about a Logical Interconnect by name
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
delegate_to: localhost
- debug: var=logical_interconnects
- name: Gather facts about a Logical Interconnect by name with QOS Configuration
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- qos_aggregated_configuration
delegate_to: localhost
- debug: var=qos_aggregated_configuration
- name: Gather facts about the SNMP configuration on the logical interconnect that matches the specified name
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- snmp_configuration
delegate_to: localhost
- debug: var=snmp_configuration
- name: Gather facts about the IGMP settings on the logical interconnect that matches the specified name
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- igmp_settings
delegate_to: localhost
- debug: var=igmp_settings
- name: "Gather facts about the port monitor configuration on the logical interconnect that matches the
specified name"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- port_monitor
delegate_to: localhost
- debug: var=port_monitor
- name: "Gather facts about an internal VLAN IDs for the provisioned networks on a logical interconnect that matches
the specified name"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- internal_vlans
delegate_to: localhost
- debug: var=internal_vlans
- name: "Gather facts about a forwarding information base data for a logical interconnect that matches the
specified name"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- forwarding_information_base
delegate_to: localhost
- debug: var=forwarding_information_base
- name: "Gather facts about an installed firmware for a logical interconnect that matches the specified name"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- firmware
delegate_to: localhost
- debug: var=firmware
- name: "Gather facts about the collection of uplink ports from the member interconnects which are eligible for
assignment to an analyzer port on the logical interconnect"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- unassigned_uplink_ports
delegate_to: localhost
- debug: var=unassigned_uplink_ports
- name: "Gather facts about the collection of ports from the member interconnects which are eligible for
assignment to an analyzer port on the logical interconnect"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- unassigned_ports
delegate_to: localhost
- debug: var=unassigned_ports
- name: "Gather facts about the telemetry configuration of the logical interconnect"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- telemetry_configuration
delegate_to: localhost
- debug: var=telemetry_configuration
- name: "Gather the Ethernet interconnect settings for the logical interconnect"
oneview_logical_interconnect_facts:
config: "{{ config }}"
name: "{{ name }}"
options:
- ethernet_settings
delegate_to: localhost
- debug: var=ethernet_settings