Skip to content

Commit

Permalink
Update aspell for POE
Browse files Browse the repository at this point in the history
Signed-off-by: Serhiy Boiko <[email protected]>
  • Loading branch information
SerhiyBoikoPLV committed Jul 25, 2024
1 parent ce8e873 commit 067dff6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions tests/aspell.en.pws
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ pn
PN
policer
PORTs
POE
PSE
pre
printf
ptr
Expand Down
4 changes: 2 additions & 2 deletions unittest/vslib/TestSwitchPoe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ TEST(SwitchPoE, refresh_read_only)
EXPECT_EQ(sw.get(SAI_OBJECT_TYPE_SWITCH, strSwitchId, 1, attrs), SAI_STATUS_SUCCESS);
EXPECT_EQ(attrs[0].value.objlist.count, 0);

// create poe device, pse, and 2 poe ports
// create POE device, PSE, and 2 POE ports

// device
sai_object_id_t devId = mgr->allocateNewObjectId(SAI_OBJECT_TYPE_POE_DEVICE, switchId);
Expand All @@ -95,7 +95,7 @@ TEST(SwitchPoE, refresh_read_only)
strncpy(attrs[0].value.chardata, "hw info", sizeof(attrs[0].value.chardata) - 1);
EXPECT_EQ(sw.create(SAI_OBJECT_TYPE_POE_DEVICE, strDevId, switchId, 1, attrs), SAI_STATUS_SUCCESS);

// pse
// PSE
sai_object_id_t pseId = mgr->allocateNewObjectId(SAI_OBJECT_TYPE_POE_PSE, switchId);
auto strPseId = sai_serialize_object_id(pseId);
attrs[0].id = SAI_POE_PSE_ATTR_ID;
Expand Down
6 changes: 3 additions & 3 deletions vslib/SwitchPoE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ sai_status_t SwitchPoE::createPoeDevice(
CHECK_STATUS(set(SAI_OBJECT_TYPE_POE_DEVICE, object_id, &attr));
}

/* update the list of all poe devices on switch */
/* update the list of all POE devices on switch */
m_poe_device_list.push_back(object_id);

auto device_count = (uint32_t)m_poe_device_list.size();
Expand Down Expand Up @@ -316,7 +316,7 @@ sai_status_t SwitchPoE::refresh_poe_pse_list(

CHECK_STATUS(set(SAI_OBJECT_TYPE_POE_DEVICE, poe_device_id, &attr));

SWSS_LOG_NOTICE("refreshed poe pse list, current pse number: %u", pse_count);
SWSS_LOG_NOTICE("refreshed POE PSE list, current PSE number: %u", pse_count);
return SAI_STATUS_SUCCESS;
}

Expand All @@ -341,6 +341,6 @@ sai_status_t SwitchPoE::refresh_poe_port_list(

CHECK_STATUS(set(SAI_OBJECT_TYPE_POE_DEVICE, poe_device_id, &attr));

SWSS_LOG_NOTICE("refreshed poe port list, current port number: %u", port_count);
SWSS_LOG_NOTICE("refreshed POE port list, current port number: %u", port_count);
return SAI_STATUS_SUCCESS;
}

0 comments on commit 067dff6

Please sign in to comment.