Beispiel #1
0
 public HostNetworkManager(
     VimReferences settings,
     ConcurrentDictionary <string, Vm> vmCache,
     VlanManager vlanManager
     ) : base(settings, vmCache, vlanManager)
 {
 }
 public NsxNetworkManager(
     VimReferences settings,
     ConcurrentDictionary <string, Vm> vmCache,
     VlanManager vlanManager,
     SddcConfiguration sddcConfig
     ) : base(settings, vmCache, vlanManager)
 {
     _config = sddcConfig;
 }
Beispiel #3
0
 public NetworkManager(
     VimReferences settings,
     ConcurrentDictionary <string, Vm> vmCache,
     VlanManager vlanManager
     )
 {
     _client       = settings;
     _vmCache      = vmCache;
     _vlanManager  = vlanManager;
     _pgAllocation = new Dictionary <string, PortGroupAllocation>();
     _swAllocation = new Dictionary <string, int>();
 }
Beispiel #4
0
 public HypervisorService(
     HypervisorServiceConfiguration options,
     ILoggerFactory mill
     )
 {
     _options     = options;
     _mill        = mill;
     _logger      = _mill.CreateLogger <HypervisorService>();
     _hostCache   = new ConcurrentDictionary <string, VimClient>();
     _affinityMap = new Dictionary <string, VimClient>();
     _vmCache     = new ConcurrentDictionary <string, Vm>();
     _vlanman     = new VlanManager(_options.Vlan);
 }
Beispiel #5
0
 public VimClient(
     HypervisorServiceConfiguration options,
     ConcurrentDictionary <string, Vm> vmCache,
     VlanManager networkManager,
     ILogger <VimClient> logger
     )
 {
     _logger = logger;
     _config = options;
     _logger.LogDebug($"Constructing Client { _config.Host }");
     _tasks        = new Dictionary <string, VimHostTask>();
     _vmCache      = vmCache;
     _pgAllocation = new Dictionary <string, PortGroupAllocation>();
     _vlanman      = networkManager;
     _hostPrefix   = _config.Host.Split('.').FirstOrDefault();
     Task sessionMonitorTask = MonitorSession();
     Task taskMonitorTask    = MonitorTasks();
 }