1 # Copyright (c) 2018 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 # This file defines yaml schema for topolgy yaml.
16 schema;topology_metadata_map:
41 schema;type_interfaces:
43 mapping: &type_interface_mapping
44 regex;(port\d+): &type_interface_mapping_port
46 mapping: &type_interface_mapping_port_mapping
51 pattern: "[0-9a-f]{4}:[0-9a-f]{2}:[0-9a-f]{2}\\.\\d{1}"
54 pattern: "[0-9a-f]{2}(:[0-9a-f]{2}){5}"
58 driver: &type_interface_mapping_driver
62 enum: [Cisco-VIC-1227, Cisco-VIC-1385, Intel-X520-DA2,
63 Intel-X710, Intel-XL710, Intel-XXV710]
68 schema;type_interface_tg: &type_interface_tg
71 <<: *type_interface_mapping
73 <<: *type_interface_mapping_port
75 <<: *type_interface_mapping_port_mapping
77 <<: *type_interface_mapping_driver
80 schema;type_honeycomb: &type_honeycomb
82 mapping: &type_honeycomb_mapping
96 schema;type_node: &type_node
98 mapping: &type_node_mapping
99 type: &type_node_mapping_type
119 <<: *type_interface_mapping
124 <<: *type_node_mapping
126 <<: *type_node_mapping_type
131 <<: *type_interface_tg
136 <<: *type_node_mapping
138 <<: *type_node_mapping_type
143 <<: *type_honeycomb_mapping