@@ -322,7 +322,7 @@ bool PortsOrch::setVoqInbandIntf(string &alias, string &type)
322322 return true ;
323323}
324324
325- bool PortsOrch::getRecircPort (Port &p, string role)
325+ bool PortsOrch::getRecircPort (Port &p, Port::Role role)
326326{
327327 return true ;
328328}
@@ -443,7 +443,7 @@ bool PortsOrch::setHostIntfsStripTag(Port &port, sai_hostif_vlan_tag_t strip)
443443 return true ;
444444}
445445
446- bool PortsOrch::setBridgePortLearnMode (Port &port, string learn_mode)
446+ bool PortsOrch::setBridgePortLearnMode (Port &port, sai_bridge_port_fdb_learning_mode_t learn_mode)
447447{
448448 return true ;
449449}
@@ -493,7 +493,7 @@ bool PortsOrch::setDistributionOnLagMember(Port &lagMember, bool enableDistribut
493493 return true ;
494494}
495495
496- bool PortsOrch::addPort (const set< int > &lane_set, uint32_t speed, int an, string fec )
496+ bool PortsOrch::addPort (const PortConfig &port )
497497{
498498 return true ;
499499}
@@ -503,7 +503,7 @@ sai_status_t PortsOrch::removePort(sai_object_id_t port_id)
503503 return SAI_STATUS_SUCCESS;
504504}
505505
506- bool PortsOrch::initPort (const string &alias, const string &role, const int index, const set< int > &lane_set )
506+ bool PortsOrch::initPort (const PortConfig &port )
507507{
508508 return true ;
509509}
@@ -527,7 +527,7 @@ bool PortsOrch::setPortMtu(const Port &port, sai_uint32_t mtu)
527527 return true ;
528528}
529529
530- bool PortsOrch::setPortTpid (sai_object_id_t id , sai_uint16_t tpid)
530+ bool PortsOrch::setPortTpid (Port &port , sai_uint16_t tpid)
531531{
532532 return true ;
533533}
@@ -542,12 +542,12 @@ bool PortsOrch::getPortPvid(Port &port, sai_uint32_t &pvid)
542542 return true ;
543543}
544544
545- bool PortsOrch::setPortFec (Port &port, std::string &mode )
545+ bool PortsOrch::setPortFec (Port &port, sai_port_fec_mode_t fec_mode )
546546{
547547 return true ;
548548}
549549
550- bool PortsOrch::setPortPfcAsym (Port &port, string pfc_asym)
550+ bool PortsOrch::setPortPfcAsym (Port &port, sai_port_priority_flow_control_mode_t pfc_asym)
551551{
552552 return true ;
553553}
@@ -596,7 +596,7 @@ bool PortsOrch::setGearboxPortAttr(const Port &port, dest_port_type_t port_type,
596596 return true ;
597597}
598598
599- task_process_status PortsOrch::setPortAdvSpeeds (sai_object_id_t port_id , std::vector <sai_uint32_t > &speed_list)
599+ task_process_status PortsOrch::setPortAdvSpeeds (Port &port , std::set <sai_uint32_t > &speed_list)
600600{
601601 return task_success;
602602}
@@ -611,22 +611,17 @@ bool PortsOrch::isAutoNegEnabled(sai_object_id_t id)
611611 return true ;
612612}
613613
614- task_process_status PortsOrch::setPortAutoNeg (sai_object_id_t id, int an )
614+ task_process_status PortsOrch::setPortAutoNeg (Port &port, bool autoneg )
615615{
616616 return task_success;
617617}
618618
619- bool PortsOrch::setPortFecMode (sai_object_id_t id, int fec)
620- {
621- return true ;
622- }
623-
624- task_process_status PortsOrch::setPortInterfaceType (sai_object_id_t id, sai_port_interface_type_t interface_type)
619+ task_process_status PortsOrch::setPortInterfaceType (Port &port, sai_port_interface_type_t interface_type)
625620{
626621 return task_success;
627622}
628623
629- task_process_status PortsOrch::setPortAdvInterfaceTypes (sai_object_id_t id , std::vector< uint32_t > &interface_types)
624+ task_process_status PortsOrch::setPortAdvInterfaceTypes (Port &port , std::set< sai_port_interface_type_t > &interface_types)
630625{
631626 return task_success;
632627}
@@ -648,21 +643,6 @@ void PortsOrch::getPortSerdesVal(const std::string &s, std::vector<uint32_t> &la
648643{
649644}
650645
651- bool PortsOrch::getPortAdvSpeedsVal (const std::string &s, std::vector<uint32_t > &speed_values)
652- {
653- return true ;
654- }
655-
656- bool PortsOrch::getPortInterfaceTypeVal (const std::string &s, sai_port_interface_type_t &interface_type)
657- {
658- return true ;
659- }
660-
661- bool PortsOrch::getPortAdvInterfaceTypesVal (const std::string &s, std::vector<uint32_t > &type_values)
662- {
663- return true ;
664- }
665-
666646void PortsOrch::removePortSerdesAttribute (sai_object_id_t port_id)
667647{
668648}
0 commit comments