Exemplo n.º 1
0
 public HostNetworkManager(
     VimReferences settings,
     ConcurrentDictionary <string, Vm> vmCache,
     VlanManager vlanManager
     ) : base(settings, vmCache, vlanManager)
 {
 }
Exemplo n.º 2
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>();
 }
Exemplo n.º 3
0
 public NsxNetworkManager(
     ILogger logger,
     VimReferences settings,
     ConcurrentDictionary <string, Vm> vmCache,
     VlanManager vlanManager,
     SddcConfiguration sddcConfig
     ) : base(settings, vmCache, vlanManager)
 {
     _logger      = logger;
     _config      = sddcConfig;
     _apiUrl      = _config.ApiUrl;
     _apiSegments = _config.SegmentApiPath;
 }
Exemplo n.º 4
0
        public vSphereHypervisorService(
            HypervisorServiceConfiguration options,
            ILoggerFactory mill
            )
        {
            _options     = options;
            _mill        = mill;
            _logger      = _mill.CreateLogger <vSphereHypervisorService>();
            _hostCache   = new ConcurrentDictionary <string, VimClient>();
            _affinityMap = new Dictionary <string, VimClient>();
            _vmCache     = new ConcurrentDictionary <string, Vm>();
            _vlanman     = new VlanManager(_options.Vlan);

            NormalizeOptions(_options);
        }