Matteo Scandolo | a229eca | 2017-08-08 13:05:28 -0700 | [diff] [blame^] | 1 | |
| 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 | |
Rich Lane | c6eca8f | 2015-04-08 15:42:26 -0700 | [diff] [blame] | 17 | """ |
| 18 | veth8 platform |
| 19 | |
| 20 | This platform uses 8 veth pairs. The switch should connect to veth0, veth2, ..., veth14. |
| 21 | """ |
| 22 | |
| 23 | def 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 | } |