spyglass-plugin-xls/spyglass_plugin_xls/examples/excel_spec.yaml
Ian H Pittwood b9da6d41eb Revise formatting of excel specs
The previous excel spec seemed to lack a consistent structure. This
change redesigns the spec to more simply and generically find where data
is located in the spreadsheet.

Change-Id: I98c1553531897e8c623caa8a1b9334ea915a3f49
2019-07-16 09:07:28 -05:00

105 lines
2.5 KiB
YAML

# Copyright 2019 AT&T Intellectual Property. All other rights reserved.
#
# 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.
# Important: Please modify the dictionary with appropriate
# design spec file.
---
specs:
# Design Spec file name: SiteDesignSpec_v0.1.xlsx
xl_spec:
ipmi:
# Series type data set that defines an iterable and the expected data
# for each index in the iterable
type: series
sheet_name: 'Site-Information'
iter:
index-type: row
start: 4
end: 15
data:
hostname: 2
ipmi_address: 3
ipmi_gateway: 4
host_profile: 5
private_vlan:
type: series
sheet_name: 'Site-Information'
no_sanitize: net_type
iter:
index-type: row
start: 19
end: 30
data:
net_type: 1
vlan: 2
private_net:
type: series
sheet_name: 'Site-Information'
iter:
index-type: row
start: 33
end: 40
data:
vlan: 1
ip: 2
public:
type: container
sheet_name: 'Site-Information'
data:
oam:
type: point
data:
vlan: [43, 1]
ip: [43, 2]
ingress:
type: point
data:
ip: [45, 2]
oob:
type: series
iter:
index-type: col
start: 2
end: 5
data:
ip: 48
site_info:
# Point type defines x, y (row, column) coordinates for where data can be found
type: point
sheet_name: 'Site-Information'
sanitize: false
data:
domain: [51, 2]
subdomain: [52, 2]
global_group: [53, 2]
ldap: [54, 2]
ntp: [55, 2]
dns: [56, 2]
location:
type: point
sheet_name: 'Site-Information'
sanitize: false
data:
sitename: [58, 2]
corridor: [59, 2]
state: [60, 2]
country: [61, 2]
clli: [62, 2]
...