From 067dff6278fe25ca41b9153a773978ac90eeca71 Mon Sep 17 00:00:00 2001 From: Serhiy Boiko Date: Thu, 25 Jul 2024 12:53:18 +0300 Subject: [PATCH] Update aspell for POE Signed-off-by: Serhiy Boiko --- tests/aspell.en.pws | 2 ++ unittest/vslib/TestSwitchPoe.cpp | 4 ++-- vslib/SwitchPoE.cpp | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/aspell.en.pws b/tests/aspell.en.pws index 71268a351..04d0b6d84 100644 --- a/tests/aspell.en.pws +++ b/tests/aspell.en.pws @@ -317,6 +317,8 @@ pn PN policer PORTs +POE +PSE pre printf ptr diff --git a/unittest/vslib/TestSwitchPoe.cpp b/unittest/vslib/TestSwitchPoe.cpp index c822c037c..ab510cf07 100644 --- a/unittest/vslib/TestSwitchPoe.cpp +++ b/unittest/vslib/TestSwitchPoe.cpp @@ -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); @@ -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; diff --git a/vslib/SwitchPoE.cpp b/vslib/SwitchPoE.cpp index ffd13cd01..95020b46a 100644 --- a/vslib/SwitchPoE.cpp +++ b/vslib/SwitchPoE.cpp @@ -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(); @@ -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; } @@ -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; }