-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add target for poesyncd container Add poe_vs hwsku Add yang models Signed-off-by: Serhiy Boiko <[email protected]>
- Loading branch information
1 parent
c8d1c1d
commit 8861f70
Showing
25 changed files
with
676 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
device/virtual/x86_64-kvm_x86_64-r0/poe_vs/context_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"CONTEXTS": [ | ||
{ | ||
"guid" : 0, | ||
"name" : "sw0", | ||
"dbAsic" : "ASIC_DB", | ||
"dbCounters" : "COUNTERS_DB", | ||
"dbFlex": "FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5555", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5556", | ||
"switches": [ | ||
{ | ||
"index" : 0, | ||
"hwinfo" : "" | ||
} | ||
] | ||
}, | ||
{ | ||
"guid" : 1, | ||
"name" : "poe1", | ||
"dbAsic" : "POE_ASIC_DB", | ||
"dbCounters" : "POE_COUNTERS_DB", | ||
"dbFlex": "POE_FLEX_COUNTER_DB", | ||
"dbState" : "STATE_DB", | ||
"zmq_enable": false, | ||
"zmq_endpoint": "tcp://127.0.0.1:5575", | ||
"zmq_ntf_endpoint": "tcp://127.0.0.1:5576", | ||
"switches": [ | ||
{ | ||
"index" : 1, | ||
"hwinfo": "" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_POE_VS | ||
SAI_VS_SAI_SWITCH_TYPE=SAI_SWITCH_TYPE_POE | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=false | ||
SAI_VS_USE_BCMSIM_LINK_MON=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
192 changes: 192 additions & 0 deletions
192
device/virtual/x86_64-kvm_x86_64-r0/poe_vs/poe_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
[{ | ||
"hw_info": "mcu1", | ||
"power_limit_mode": "port", | ||
"pse_list": [ | ||
{ | ||
"pse_index": 0 | ||
}, | ||
{ | ||
"pse_index": 1 | ||
} | ||
], | ||
"port_mapping_list": [ | ||
{ | ||
"interface": "Ethernet0", | ||
"front_panel_index": 1, | ||
"power_priority": "crit" | ||
}, | ||
{ | ||
"interface": "Ethernet4", | ||
"front_panel_index": 2, | ||
"power_priority": "crit" | ||
}, | ||
{ | ||
"interface": "Ethernet8", | ||
"front_panel_index": 3, | ||
"power_priority": "low" | ||
}, | ||
{ | ||
"interface": "Ethernet12", | ||
"front_panel_index": 4, | ||
"power_priority": "low" | ||
}, | ||
{ | ||
"interface": "Ethernet16", | ||
"front_panel_index": 5, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet20", | ||
"front_panel_index": 6, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet24", | ||
"front_panel_index": 7, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet28", | ||
"front_panel_index": 8, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet32", | ||
"front_panel_index": 9, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet36", | ||
"front_panel_index": 10, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet40", | ||
"front_panel_index": 11, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet44", | ||
"front_panel_index": 12, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet48", | ||
"front_panel_index": 13, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet52", | ||
"front_panel_index": 14, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet56", | ||
"front_panel_index": 15, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet60", | ||
"front_panel_index": 16, | ||
"power_priority": "high" | ||
} | ||
] | ||
}, | ||
{ | ||
"hw_info": "mcu2", | ||
"pse_list": [ | ||
{ | ||
"pse_index": 2 | ||
}, | ||
{ | ||
"pse_index": 3 | ||
} | ||
], | ||
"port_mapping_list": [ | ||
{ | ||
"interface": "Ethernet64", | ||
"front_panel_index": 17, | ||
"power_priority": "crit" | ||
}, | ||
{ | ||
"interface": "Ethernet68", | ||
"front_panel_index": 18, | ||
"power_priority": "crit" | ||
}, | ||
{ | ||
"interface": "Ethernet72", | ||
"front_panel_index": 19, | ||
"power_priority": "low" | ||
}, | ||
{ | ||
"interface": "Ethernet76", | ||
"front_panel_index": 20, | ||
"power_priority": "low" | ||
}, | ||
{ | ||
"interface": "Ethernet80", | ||
"front_panel_index": 21, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet84", | ||
"front_panel_index": 22, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet88", | ||
"front_panel_index": 23, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet92", | ||
"front_panel_index": 24, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet96", | ||
"front_panel_index": 25, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet100", | ||
"front_panel_index": 26, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet104", | ||
"front_panel_index": 27, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet108", | ||
"front_panel_index": 28, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet112", | ||
"front_panel_index": 29, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet116", | ||
"front_panel_index": 30, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet120", | ||
"front_panel_index": 31, | ||
"power_priority": "high" | ||
}, | ||
{ | ||
"interface": "Ethernet124", | ||
"front_panel_index": 32, | ||
"power_priority": "high" | ||
} | ||
] | ||
}, | ||
{ | ||
"hw_info": "mcu3", | ||
"pse_list": [], | ||
"port_mapping_list": [] | ||
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SAI_VS_SWITCH_TYPE=SAI_VS_SWITCH_TYPE_BCM56850 | ||
SAI_VS_HOSTIF_USE_TAP_DEVICE=true | ||
SAI_VS_INTERFACE_LANE_MAP_FILE=/usr/share/sonic/hwsku/lanemap.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[Unit] | ||
Description={{docker_container_name}} service | ||
Requires=database{% if multi_instance == 'true' %}@%i{% endif %}.service config-setup.service | ||
After=database{% if multi_instance == 'true' %}@%i{% endif %}.service config-setup.service | ||
After=interfaces-config.service | ||
After=swss{% if multi_instance == 'true' %}@%i{% endif %}.service | ||
BindsTo=sonic.target | ||
After=sonic.target | ||
|
||
[Service] | ||
User={{ sonicadmin_user }} | ||
Environment=sonic_asic_platform={{ sonic_asic_platform }} | ||
Environment=poesyncd_platform={{ docker_container_name }} | ||
ExecCondition=/usr/bin/{{docker_container_name}}-platform.sh | ||
ExecStartPre=/usr/bin/{{docker_container_name}}.sh start{% if multi_instance == 'true' %} %i{% endif %} | ||
ExecStart=/usr/bin/{{docker_container_name}}.sh wait{% if multi_instance == 'true' %} %i{% endif %} | ||
ExecStop=/usr/bin/{{docker_container_name}}.sh stop{% if multi_instance == 'true' %} %i{% endif %} | ||
Restart=always | ||
RestartSec=30 | ||
|
||
[Install] | ||
WantedBy=sonic.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.