Dan Talayco | 4837010 | 2010-03-03 15:17:33 -0800 | [diff] [blame] | 1 | """ |
Rich Lane | 8aebc5e | 2012-09-25 17:57:53 -0700 | [diff] [blame^] | 2 | Remote platform |
| 3 | |
| 4 | This platform uses physical ethernet interfaces. |
Dan Talayco | 4837010 | 2010-03-03 15:17:33 -0800 | [diff] [blame] | 5 | """ |
| 6 | |
Rich Lane | 8aebc5e | 2012-09-25 17:57:53 -0700 | [diff] [blame^] | 7 | # Update this dictionary to suit your environment. |
Dan Talayco | 4837010 | 2010-03-03 15:17:33 -0800 | [diff] [blame] | 8 | remote_port_map = { |
| 9 | 23 : "eth2", |
| 10 | 24 : "eth3", |
| 11 | 25 : "eth4", |
| 12 | 26 : "eth5" |
Rich Lane | 8aebc5e | 2012-09-25 17:57:53 -0700 | [diff] [blame^] | 13 | } |
Dan Talayco | 4837010 | 2010-03-03 15:17:33 -0800 | [diff] [blame] | 14 | |
| 15 | def platform_config_update(config): |
| 16 | """ |
| 17 | Update configuration for the remote platform |
| 18 | |
| 19 | @param config The configuration dictionary to use/update |
Dan Talayco | 4837010 | 2010-03-03 15:17:33 -0800 | [diff] [blame] | 20 | """ |
Dan Talayco | 4837010 | 2010-03-03 15:17:33 -0800 | [diff] [blame] | 21 | global remote_port_map |
| 22 | config["port_map"] = remote_port_map.copy() |
Dan Talayco | 8b886b1 | 2010-06-08 14:02:35 -0700 | [diff] [blame] | 23 | config["caps_table_idx"] = 0 |