Open tieguoevan opened 7 years ago
correct. this is not supported on v0.9.4. will it affect anything?
The problem is that if we set port speed, the orchagent will crash.
And the file will set port speed if we use it to generate minigraph.xml. https://github.com/Azure/sonic-mgmt/blob/master/ansible/templates/topo/dev_metadata.j2
Sep 11 03:14:05.286789 sonic NOTICE swssconfig: :- main: Loading config from JSON file:/etc/swss/config.d/ports.json... Sep 11 03:14:05.292007 sonic ERR orchagent: :- meta_sai_get_oid: get status: -327680 Sep 11 03:14:05.292007 sonic WARNING orchagent: :- validatePortSpeed: Unable to validate speed for port 1000000000004. Not supported by platform Sep 11 03:14:05.292511 sonic WARNING syncd: :- processEvent: get API for key: SAI_OBJECT_TYPE_PORT:oid:0x1000000000004 op: get returned status: SAI_STATUS_ATTR_NOT_SUPPORTED_0 Sep 11 03:14:05.296733 sonic NOTICE orchagent: :- doPortTask: Set port Ethernet68 speed to 25000 Sep 11 03:14:05.297196 sonic NOTICE orchagent: :- doPortTask: Set port Ethernet68 admin status to down Sep 11 03:14:05.297330 sonic NOTICE orchagent: :- doPortTask: Set port Ethernet68 MTU to 1500 Sep 11 03:14:05.297649 sonic ERR syncd: brcm_sai_set_port_attribute:151 Set port 106 attrib 29 failed with error Invalid configuration (0xfffffff1). Sep 11 03:14:05.297649 sonic ERR syncd: :- processEvent: failed to execute api: set, key: SAI_OBJECT_TYPE_PORT:oid:0x1000000000004, status: SAI_STATUS_FAILURE Sep 11 03:14:05.297671 sonic ERR syncd: :- processEvent: field: SAI_PORT_ATTR_SPEED, value: 25000 Sep 11 03:14:05.297691 sonic NOTICE syncd: :- exit_and_notify: sending switch_shutdown_request notification to OA Sep 11 03:14:05.297992 sonic NOTICE orchagent: :- handle_switch_shutdown_request: switch shutdown request Sep 11 03:14:05.298035 sonic ERR orchagent: :- on_switch_shutdown_request: Syncd stopped Sep 11 03:14:05.298267 sonic INFO supervisord: orchagent terminate called without an active exception Sep 11 03:14:05.298693 sonic NOTICE syncd: :- exit_and_notify: notification send successfull Sep 11 03:14:05.298693 sonic WARNING syncd: :- exit_and_notify: sleep forever to keep data plane active Sep 11 03:14:05.566384 sonic INFO swss.sh[2070]: 2017-09-11 03:14:05,565 INFO exited: orchagent (terminated by SIGABRT (core dumped); not expected) Sep 11 03:14:06.534642 sonic WARNING snmp-subagent [sonic_ax_impl] WARNING: 0 - b'LLDP_ENTRY_TABLE' is empty. No LLDP information could be retrieved. Sep 11 03:14:09.548508 sonic WARNING snmp-subagent [sonic_ax_impl] WARNING: 0 - b'LLDP_ENTRY_TABLE' is empty. No LLDP information could be retrieved. Sep 11 03:14:09.768405 sonic INFO supervisord 2017-09-11 03:14:05,565 INFO exited: orchagent (terminated by SIGABRT (core dumped); not expected) Sep 11 03:14:12.566145 sonic WARNING snmp-subagent [sonic_ax_impl] WARNING: 0 - b'LLDP_ENTRY_TABLE' is empty. No LLDP information could be retrieved.
could you provide the show version
and show platform summary
output? I think this version of SAI doesn't support to set the port to this speed.
Hi, I'm using Broadcom sai 0.9.4, but it seems not support sai attribute SAI_PORT_ATTR_SUPPORTED_SPEED.