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]
65 schema;type_interface_tg: &type_interface_tg
68 <<: *type_interface_mapping
70 <<: *type_interface_mapping_port
72 <<: *type_interface_mapping_port_mapping
74 <<: *type_interface_mapping_driver
77 schema;type_honeycomb: &type_honeycomb
79 mapping: &type_honeycomb_mapping
93 schema;type_node: &type_node
95 mapping: &type_node_mapping
96 type: &type_node_mapping_type
116 <<: *type_interface_mapping
121 <<: *type_node_mapping
123 <<: *type_node_mapping_type
128 <<: *type_interface_tg
133 <<: *type_node_mapping
135 <<: *type_node_mapping_type
140 <<: *type_honeycomb_mapping