blob: 665e2508e9574f4992893ec5abf4fafc00c3df0a [file] [log] [blame]
Sreeju Sreedhare3fefd92019-04-02 15:57:15 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
17"""
18veth8 platform
19
20This platform uses 8 veth pairs. The switch should connect to veth0, veth2, ..., veth14.
21"""
22
23def platform_config_update(config):
24 """
25 Update configuration for the local platform
26
27 @param config The configuration dictionary to use/update
28 """
29
30 config['port_map'] = {
31 1: 'veth1',
32 2: 'veth3',
33 3: 'veth5',
34 4: 'veth7',
35 5: 'veth9',
36 6: 'veth11',
37 7: 'veth13',
38 8: 'veth15',
39 }