void WedgePlatform::init() { auto config = loadConfig(); BcmAPI::init(config); initLocalMac(); hw_.reset(new BcmSwitch(this, getMode() == WedgePlatformMode::LC ? BcmSwitch::HALF_HASH : BcmSwitch::FULL_HASH)); }
WedgePlatform::WedgePlatform() : productInfo_(FLAGS_fruid_filepath) { auto config = loadConfig(); BcmAPI::init(config); initLocalMac(); hw_.reset(new BcmSwitch(this)); productInfo_.initialize(); }
WedgePlatform::WedgePlatform() : productInfo_(FLAGS_fruid_filepath) { productInfo_.initialize(); initMode(); auto config = loadConfig(); BcmAPI::init(config); initLocalMac(); hw_.reset(new BcmSwitch(this, mode_ == LC ? BcmSwitch::HALF_HASH : BcmSwitch::FULL_HASH)); }
WedgePlatform::WedgePlatform() { auto config = loadConfig(); BcmAPI::init(config); initLocalMac(); hw_.reset(new BcmSwitch(this)); }