1 # Copyright (c) 2016 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
61 schema;type_interface_tg: &type_interface_tg
64 <<: *type_interface_mapping
66 <<: *type_interface_mapping_port
68 <<: *type_interface_mapping_port_mapping
70 <<: *type_interface_mapping_driver
73 schema;type_honeycomb: &type_honeycomb
75 mapping: &type_honeycomb_mapping
89 schema;type_node: &type_node
91 mapping: &type_node_mapping
92 type: &type_node_mapping_type
109 <<: *type_interface_mapping
114 <<: *type_node_mapping
116 <<: *type_node_mapping_type
121 <<: *type_interface_tg
126 <<: *type_node_mapping
128 <<: *type_node_mapping_type
133 <<: *type_honeycomb_mapping