Minipack is a new building block switch based on Broadcom Tomahawk 3 ASIC, in which two types of PIM cards are currently supported 100GbE and 400GbE. Since SONiC doesn’t support dynamic port creation and deletion, we have to build different images with specific ASIC and port configurations to fit combination of the two types of cards. To resolve the problem, we propose and enable hot swapping on PIM cards by capturing card plug/unplug events on the fly and dynamically changing ASIC and port configurations.