Example #1
0
void WedgePlatform::init() {
  auto config = loadConfig();
  BcmAPI::init(config);
  initLocalMac();
  hw_.reset(new BcmSwitch(this, getMode() == WedgePlatformMode::LC ?
        BcmSwitch::HALF_HASH : BcmSwitch::FULL_HASH));
}
Example #2
0
WedgePlatform::WedgePlatform()
  : productInfo_(FLAGS_fruid_filepath) {
  auto config = loadConfig();
  BcmAPI::init(config);
  initLocalMac();
  hw_.reset(new BcmSwitch(this));
  productInfo_.initialize();
}
Example #3
0
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));
}
Example #4
0
WedgePlatform::WedgePlatform() {
  auto config = loadConfig();
  BcmAPI::init(config);
  initLocalMac();
  hw_.reset(new BcmSwitch(this));
}