blob: 3666bb4937e0219785a3f5cd0417f820b921a7cd [file] [log] [blame]
Dan Talayco48370102010-03-03 15:17:33 -08001"""
Rich Lane8aebc5e2012-09-25 17:57:53 -07002Remote platform
3
4This platform uses physical ethernet interfaces.
Dan Talayco48370102010-03-03 15:17:33 -08005"""
6
Rich Lane8aebc5e2012-09-25 17:57:53 -07007# Update this dictionary to suit your environment.
Dan Talayco48370102010-03-03 15:17:33 -08008remote_port_map = {
9 23 : "eth2",
10 24 : "eth3",
11 25 : "eth4",
12 26 : "eth5"
Rich Lane8aebc5e2012-09-25 17:57:53 -070013}
Dan Talayco48370102010-03-03 15:17:33 -080014
15def platform_config_update(config):
16 """
17 Update configuration for the remote platform
18
19 @param config The configuration dictionary to use/update
Dan Talayco48370102010-03-03 15:17:33 -080020 """
Dan Talayco48370102010-03-03 15:17:33 -080021 global remote_port_map
22 config["port_map"] = remote_port_map.copy()
Dan Talayco8b886b12010-06-08 14:02:35 -070023 config["caps_table_idx"] = 0