summaryrefslogtreecommitdiff
path: root/redfish-core/lib
diff options
context:
space:
mode:
authorJiaqing Zhao <jiaqing.zhao@intel.com>2022-04-14 06:40:13 +0300
committerJiaqing Zhao <jiaqing.zhao@intel.com>2022-04-15 19:19:36 +0300
commit82818b926d3f2749b292a237826938cd3dad77f2 (patch)
tree042f538f282e5c62acf9e8dfda03d023b1ae04f3 /redfish-core/lib
parent90d2d1e887e68c70f8e5923eb69c3c9356dae547 (diff)
downloadbmcweb-82818b926d3f2749b292a237826938cd3dad77f2.tar.xz
ethernet: Remove unused changeVlanId() function
In ethernet.hpp, changeVlanId() is defined but never used, and VLAN ID is not a writable property in phosphor-networkd. Remove it. Tested: Build pass. Change-Id: I1770e777529cca9d9a56831f62e0833c3f7de9df Signed-off-by: Jiaqing Zhao <jiaqing.zhao@intel.com>
Diffstat (limited to 'redfish-core/lib')
-rw-r--r--redfish-core/lib/ethernet.hpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp
index bdc2a65152..3b2ae75516 100644
--- a/redfish-core/lib/ethernet.hpp
+++ b/redfish-core/lib/ethernet.hpp
@@ -590,27 +590,6 @@ inline void
}
/**
- * @brief Sets given Id on the given VLAN interface through D-Bus
- *
- * @param[in] ifaceId Id of VLAN interface that should be modified
- * @param[in] inputVlanId New ID of the VLAN
- * @param[in] callback Function that will be called after the operation
- *
- * @return None.
- */
-template <typename CallbackFunc>
-void changeVlanId(const std::string& ifaceId, const uint32_t& inputVlanId,
- CallbackFunc&& callback)
-{
- crow::connections::systemBus->async_method_call(
- callback, "xyz.openbmc_project.Network",
- std::string("/xyz/openbmc_project/network/") + ifaceId,
- "org.freedesktop.DBus.Properties", "Set",
- "xyz.openbmc_project.Network.VLAN", "Id",
- dbus::utility::DbusVariantType(inputVlanId));
-}
-
-/**
* @brief Helper function that verifies IP address to check if it is in
* proper format. If bits pointer is provided, also calculates active
* bit count for Subnet Mask.