repo
stringlengths
7
54
path
stringlengths
4
223
func_name
stringlengths
1
134
original_string
stringlengths
75
104k
language
stringclasses
1 value
code
stringlengths
75
104k
code_tokens
listlengths
20
28.4k
docstring
stringlengths
1
46.3k
docstring_tokens
listlengths
1
1.66k
sha
stringlengths
40
40
url
stringlengths
87
315
partition
stringclasses
1 value
summary
stringlengths
4
350
obf_code
stringlengths
7.85k
764k
saltstack/salt
salt/modules/vsphere.py
_get_dvs_product_info
def _get_dvs_product_info(dvs_name, dvs_product_info): ''' Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_product_info The DVS product info ''' log.trace('Building the dict of the DVS \'%s\' product info', dvs_name) return {'name': ...
python
def _get_dvs_product_info(dvs_name, dvs_product_info): ''' Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_product_info The DVS product info ''' log.trace('Building the dict of the DVS \'%s\' product info', dvs_name) return {'name': ...
[ "def", "_get_dvs_product_info", "(", "dvs_name", ",", "dvs_product_info", ")", ":", "log", ".", "trace", "(", "'Building the dict of the DVS \\'%s\\' product info'", ",", "dvs_name", ")", "return", "{", "'name'", ":", "dvs_product_info", ".", "name", ",", "'vendor'", ...
Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_product_info The DVS product info
[ "Returns", "the", "dict", "representation", "of", "the", "DVS", "product_info" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3685-L3698
train
Returns the dict representation of the DVS product info.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_dvs_capability
def _get_dvs_capability(dvs_name, dvs_capability): ''' Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_capability The DVS capability ''' log.trace('Building the dict of the DVS \'%s\' capability', dvs_name) return {'operation_support...
python
def _get_dvs_capability(dvs_name, dvs_capability): ''' Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_capability The DVS capability ''' log.trace('Building the dict of the DVS \'%s\' capability', dvs_name) return {'operation_support...
[ "def", "_get_dvs_capability", "(", "dvs_name", ",", "dvs_capability", ")", ":", "log", ".", "trace", "(", "'Building the dict of the DVS \\'%s\\' capability'", ",", "dvs_name", ")", "return", "{", "'operation_supported'", ":", "dvs_capability", ".", "dvsOperationSupported...
Returns the dict representation of the DVS product_info dvs_name The name of the DVS dvs_capability The DVS capability
[ "Returns", "the", "dict", "representation", "of", "the", "DVS", "product_info" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3701-L3715
train
Returns the dict representation of the DVS product_info dvs_name dvs_capability
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_dvs_infrastructure_traffic_resources
def _get_dvs_infrastructure_traffic_resources(dvs_name, dvs_infra_traffic_ress): ''' Returns a list of dict representations of the DVS infrastructure traffic resource dvs_name The name of the DVS dvs_infra_traffic_ress The DVS infrastru...
python
def _get_dvs_infrastructure_traffic_resources(dvs_name, dvs_infra_traffic_ress): ''' Returns a list of dict representations of the DVS infrastructure traffic resource dvs_name The name of the DVS dvs_infra_traffic_ress The DVS infrastru...
[ "def", "_get_dvs_infrastructure_traffic_resources", "(", "dvs_name", ",", "dvs_infra_traffic_ress", ")", ":", "log", ".", "trace", "(", "'Building the dicts of the DVS \\'%s\\' infrastructure '", "'traffic resources'", ",", "dvs_name", ")", "res_dicts", "=", "[", "]", "for"...
Returns a list of dict representations of the DVS infrastructure traffic resource dvs_name The name of the DVS dvs_infra_traffic_ress The DVS infrastructure traffic resources
[ "Returns", "a", "list", "of", "dict", "representations", "of", "the", "DVS", "infrastructure", "traffic", "resource" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3718-L3741
train
Returns a list of dict representations of the DVS infrastructure traffic resources
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_dvss
def list_dvss(datacenter=None, dvs_names=None, service_instance=None): ''' Returns a list of distributed virtual switches (DVSs). The list can be filtered by the datacenter or DVS names. datacenter The datacenter to look for DVSs in. Default value is None. dvs_names List of...
python
def list_dvss(datacenter=None, dvs_names=None, service_instance=None): ''' Returns a list of distributed virtual switches (DVSs). The list can be filtered by the datacenter or DVS names. datacenter The datacenter to look for DVSs in. Default value is None. dvs_names List of...
[ "def", "list_dvss", "(", "datacenter", "=", "None", ",", "dvs_names", "=", "None", ",", "service_instance", "=", "None", ")", ":", "ret_list", "=", "[", "]", "proxy_type", "=", "get_proxy_type", "(", ")", "if", "proxy_type", "==", "'esxdatacenter'", ":", "...
Returns a list of distributed virtual switches (DVSs). The list can be filtered by the datacenter or DVS names. datacenter The datacenter to look for DVSs in. Default value is None. dvs_names List of DVS names to look for. If None, all DVSs are returned. Default value is No...
[ "Returns", "a", "list", "of", "distributed", "virtual", "switches", "(", "DVSs", ")", ".", "The", "list", "can", "be", "filtered", "by", "the", "datacenter", "or", "DVS", "names", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3747-L3807
train
Returns a list of distributed virtual switches.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvs_config
def _apply_dvs_config(config_spec, config_dict): ''' Applies the values of the config dict dictionary to a config spec (vim.VMwareDVSConfigSpec) ''' if config_dict.get('name'): config_spec.name = config_dict['name'] if config_dict.get('contact_email') or config_dict.get('contact_name'): ...
python
def _apply_dvs_config(config_spec, config_dict): ''' Applies the values of the config dict dictionary to a config spec (vim.VMwareDVSConfigSpec) ''' if config_dict.get('name'): config_spec.name = config_dict['name'] if config_dict.get('contact_email') or config_dict.get('contact_name'): ...
[ "def", "_apply_dvs_config", "(", "config_spec", ",", "config_dict", ")", ":", "if", "config_dict", ".", "get", "(", "'name'", ")", ":", "config_spec", ".", "name", "=", "config_dict", "[", "'name'", "]", "if", "config_dict", ".", "get", "(", "'contact_email'...
Applies the values of the config dict dictionary to a config spec (vim.VMwareDVSConfigSpec)
[ "Applies", "the", "values", "of", "the", "config", "dict", "dictionary", "to", "a", "config", "spec", "(", "vim", ".", "VMwareDVSConfigSpec", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3810-L3839
train
Applies the values of the config dict dictionary to a config spec
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvs_product_info
def _apply_dvs_product_info(product_info_spec, product_info_dict): ''' Applies the values of the product_info_dict dictionary to a product info spec (vim.DistributedVirtualSwitchProductSpec) ''' if product_info_dict.get('name'): product_info_spec.name = product_info_dict['name'] if produ...
python
def _apply_dvs_product_info(product_info_spec, product_info_dict): ''' Applies the values of the product_info_dict dictionary to a product info spec (vim.DistributedVirtualSwitchProductSpec) ''' if product_info_dict.get('name'): product_info_spec.name = product_info_dict['name'] if produ...
[ "def", "_apply_dvs_product_info", "(", "product_info_spec", ",", "product_info_dict", ")", ":", "if", "product_info_dict", ".", "get", "(", "'name'", ")", ":", "product_info_spec", ".", "name", "=", "product_info_dict", "[", "'name'", "]", "if", "product_info_dict",...
Applies the values of the product_info_dict dictionary to a product info spec (vim.DistributedVirtualSwitchProductSpec)
[ "Applies", "the", "values", "of", "the", "product_info_dict", "dictionary", "to", "a", "product", "info", "spec", "(", "vim", ".", "DistributedVirtualSwitchProductSpec", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3851-L3861
train
Applies the values of the product_info_dict dictionary to a product info
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvs_capability
def _apply_dvs_capability(capability_spec, capability_dict): ''' Applies the values of the capability_dict dictionary to a DVS capability object (vim.vim.DVSCapability) ''' if 'operation_supported' in capability_dict: capability_spec.dvsOperationSupported = \ capability_dict[...
python
def _apply_dvs_capability(capability_spec, capability_dict): ''' Applies the values of the capability_dict dictionary to a DVS capability object (vim.vim.DVSCapability) ''' if 'operation_supported' in capability_dict: capability_spec.dvsOperationSupported = \ capability_dict[...
[ "def", "_apply_dvs_capability", "(", "capability_spec", ",", "capability_dict", ")", ":", "if", "'operation_supported'", "in", "capability_dict", ":", "capability_spec", ".", "dvsOperationSupported", "=", "capability_dict", "[", "'operation_supported'", "]", "if", "'port_...
Applies the values of the capability_dict dictionary to a DVS capability object (vim.vim.DVSCapability)
[ "Applies", "the", "values", "of", "the", "capability_dict", "dictionary", "to", "a", "DVS", "capability", "object", "(", "vim", ".", "vim", ".", "DVSCapability", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3864-L3877
train
Applies the values of the capability_dict dictionary to a DVS capability object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvs_infrastructure_traffic_resources
def _apply_dvs_infrastructure_traffic_resources(infra_traffic_resources, resource_dicts): ''' Applies the values of the resource dictionaries to infra traffic resources, creating the infra traffic resource if required (vim.DistributedVirtualSwitchProductSp...
python
def _apply_dvs_infrastructure_traffic_resources(infra_traffic_resources, resource_dicts): ''' Applies the values of the resource dictionaries to infra traffic resources, creating the infra traffic resource if required (vim.DistributedVirtualSwitchProductSp...
[ "def", "_apply_dvs_infrastructure_traffic_resources", "(", "infra_traffic_resources", ",", "resource_dicts", ")", ":", "for", "res_dict", "in", "resource_dicts", ":", "filtered_traffic_resources", "=", "[", "r", "for", "r", "in", "infra_traffic_resources", "if", "r", "....
Applies the values of the resource dictionaries to infra traffic resources, creating the infra traffic resource if required (vim.DistributedVirtualSwitchProductSpec)
[ "Applies", "the", "values", "of", "the", "resource", "dictionaries", "to", "infra", "traffic", "resources", "creating", "the", "infra", "traffic", "resource", "if", "required", "(", "vim", ".", "DistributedVirtualSwitchProductSpec", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3880-L3911
train
Applies the values of the resource dictionaries to infra traffic resources.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvs_network_resource_pools
def _apply_dvs_network_resource_pools(network_resource_pools, resource_dicts): ''' Applies the values of the resource dictionaries to network resource pools, creating the resource pools if required (vim.DVSNetworkResourcePoolConfigSpec) ''' for res_dict in resource_dicts: ress = [r for r...
python
def _apply_dvs_network_resource_pools(network_resource_pools, resource_dicts): ''' Applies the values of the resource dictionaries to network resource pools, creating the resource pools if required (vim.DVSNetworkResourcePoolConfigSpec) ''' for res_dict in resource_dicts: ress = [r for r...
[ "def", "_apply_dvs_network_resource_pools", "(", "network_resource_pools", ",", "resource_dicts", ")", ":", "for", "res_dict", "in", "resource_dicts", ":", "ress", "=", "[", "r", "for", "r", "in", "network_resource_pools", "if", "r", ".", "key", "==", "res_dict", ...
Applies the values of the resource dictionaries to network resource pools, creating the resource pools if required (vim.DVSNetworkResourcePoolConfigSpec)
[ "Applies", "the", "values", "of", "the", "resource", "dictionaries", "to", "network", "resource", "pools", "creating", "the", "resource", "pools", "if", "required", "(", "vim", ".", "DVSNetworkResourcePoolConfigSpec", ")" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3914-L3937
train
Applies the values of the resource dictionaries to the network resource pools if required Creates the resource pools if required
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_dvs
def create_dvs(dvs_dict, dvs_name, service_instance=None): ''' Creates a distributed virtual switch (DVS). Note: The ``dvs_name`` param will override any name set in ``dvs_dict``. dvs_dict Dict representation of the new DVS (example in salt.states.dvs) dvs_name Name of the DVS to ...
python
def create_dvs(dvs_dict, dvs_name, service_instance=None): ''' Creates a distributed virtual switch (DVS). Note: The ``dvs_name`` param will override any name set in ``dvs_dict``. dvs_dict Dict representation of the new DVS (example in salt.states.dvs) dvs_name Name of the DVS to ...
[ "def", "create_dvs", "(", "dvs_dict", ",", "dvs_name", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Creating dvs \\'%s\\' with dict = %s'", ",", "dvs_name", ",", "dvs_dict", ")", "proxy_type", "=", "get_proxy_type", "(", ")", "if",...
Creates a distributed virtual switch (DVS). Note: The ``dvs_name`` param will override any name set in ``dvs_dict``. dvs_dict Dict representation of the new DVS (example in salt.states.dvs) dvs_name Name of the DVS to be created. service_instance Service instance (vim.Service...
[ "Creates", "a", "distributed", "virtual", "switch", "(", "DVS", ")", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L3943-L4008
train
Creates a distributed virtual switch with the given dict.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
update_dvs
def update_dvs(dvs_dict, dvs, service_instance=None): ''' Updates a distributed virtual switch (DVS). Note: Updating the product info, capability, uplinks of a DVS is not supported so the corresponding entries in ``dvs_dict`` will be ignored. dvs_dict Dictionary with the va...
python
def update_dvs(dvs_dict, dvs, service_instance=None): ''' Updates a distributed virtual switch (DVS). Note: Updating the product info, capability, uplinks of a DVS is not supported so the corresponding entries in ``dvs_dict`` will be ignored. dvs_dict Dictionary with the va...
[ "def", "update_dvs", "(", "dvs_dict", ",", "dvs", ",", "service_instance", "=", "None", ")", ":", "# Remove ignored properties", "log", ".", "trace", "(", "'Updating dvs \\'%s\\' with dict = %s'", ",", "dvs", ",", "dvs_dict", ")", "for", "prop", "in", "[", "'pro...
Updates a distributed virtual switch (DVS). Note: Updating the product info, capability, uplinks of a DVS is not supported so the corresponding entries in ``dvs_dict`` will be ignored. dvs_dict Dictionary with the values the DVS should be update with (example in salt.states...
[ "Updates", "a", "distributed", "virtual", "switch", "(", "DVS", ")", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4014-L4086
train
Updates the distributed virtual switch with the given dict.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_dvportgroup_out_shaping
def _get_dvportgroup_out_shaping(pg_name, pg_default_port_config): ''' Returns the out shaping policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace('Retrieving portgroup\'s \'%s...
python
def _get_dvportgroup_out_shaping(pg_name, pg_default_port_config): ''' Returns the out shaping policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace('Retrieving portgroup\'s \'%s...
[ "def", "_get_dvportgroup_out_shaping", "(", "pg_name", ",", "pg_default_port_config", ")", ":", "log", ".", "trace", "(", "'Retrieving portgroup\\'s \\'%s\\' out shaping config'", ",", "pg_name", ")", "out_shaping_policy", "=", "pg_default_port_config", ".", "outShapingPolicy...
Returns the out shaping policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup
[ "Returns", "the", "out", "shaping", "policy", "of", "a", "distributed", "virtual", "portgroup" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4089-L4106
train
Returns the out shaping policy of a distributed virtual portgroup.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_dvportgroup_security_policy
def _get_dvportgroup_security_policy(pg_name, pg_default_port_config): ''' Returns the security policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace('Retrieving portgroup\'s \'%...
python
def _get_dvportgroup_security_policy(pg_name, pg_default_port_config): ''' Returns the security policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace('Retrieving portgroup\'s \'%...
[ "def", "_get_dvportgroup_security_policy", "(", "pg_name", ",", "pg_default_port_config", ")", ":", "log", ".", "trace", "(", "'Retrieving portgroup\\'s \\'%s\\' security policy config'", ",", "pg_name", ")", "sec_policy", "=", "pg_default_port_config", ".", "securityPolicy",...
Returns the security policy of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup
[ "Returns", "the", "security", "policy", "of", "a", "distributed", "virtual", "portgroup" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4109-L4125
train
Returns the security policy of a distributed virtual portgroup.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_dvportgroup_teaming
def _get_dvportgroup_teaming(pg_name, pg_default_port_config): ''' Returns the teaming of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace('Retrieving portgroup\'s \'%s\' teaming conf...
python
def _get_dvportgroup_teaming(pg_name, pg_default_port_config): ''' Returns the teaming of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup ''' log.trace('Retrieving portgroup\'s \'%s\' teaming conf...
[ "def", "_get_dvportgroup_teaming", "(", "pg_name", ",", "pg_default_port_config", ")", ":", "log", ".", "trace", "(", "'Retrieving portgroup\\'s \\'%s\\' teaming config'", ",", "pg_name", ")", "teaming_policy", "=", "pg_default_port_config", ".", "uplinkTeamingPolicy", "if"...
Returns the teaming of a distributed virtual portgroup pg_name The name of the portgroup pg_default_port_config The dafault port config of the portgroup
[ "Returns", "the", "teaming", "of", "a", "distributed", "virtual", "portgroup" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4128-L4161
train
Returns the teaming of a distributed virtual portgroup.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_dvportgroup_dict
def _get_dvportgroup_dict(pg_ref): ''' Returns a dictionary with a distributed virutal portgroup data pg_ref Portgroup reference ''' props = salt.utils.vmware.get_properties_of_managed_object( pg_ref, ['name', 'config.description', 'config.numPorts', 'config.type',...
python
def _get_dvportgroup_dict(pg_ref): ''' Returns a dictionary with a distributed virutal portgroup data pg_ref Portgroup reference ''' props = salt.utils.vmware.get_properties_of_managed_object( pg_ref, ['name', 'config.description', 'config.numPorts', 'config.type',...
[ "def", "_get_dvportgroup_dict", "(", "pg_ref", ")", ":", "props", "=", "salt", ".", "utils", ".", "vmware", ".", "get_properties_of_managed_object", "(", "pg_ref", ",", "[", "'name'", ",", "'config.description'", ",", "'config.numPorts'", ",", "'config.type'", ","...
Returns a dictionary with a distributed virutal portgroup data pg_ref Portgroup reference
[ "Returns", "a", "dictionary", "with", "a", "distributed", "virutal", "portgroup", "data" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4164-L4198
train
Returns a dictionary with a distributed virutal portgroup data pg_ref Portgroup reference
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_dvportgroups
def list_dvportgroups(dvs=None, portgroup_names=None, service_instance=None): ''' Returns a list of distributed virtual switch portgroups. The list can be filtered by the portgroup names or by the DVS. dvs Name of the DVS containing the portgroups. Default value is None. portgroup_...
python
def list_dvportgroups(dvs=None, portgroup_names=None, service_instance=None): ''' Returns a list of distributed virtual switch portgroups. The list can be filtered by the portgroup names or by the DVS. dvs Name of the DVS containing the portgroups. Default value is None. portgroup_...
[ "def", "list_dvportgroups", "(", "dvs", "=", "None", ",", "portgroup_names", "=", "None", ",", "service_instance", "=", "None", ")", ":", "ret_dict", "=", "[", "]", "proxy_type", "=", "get_proxy_type", "(", ")", "if", "proxy_type", "==", "'esxdatacenter'", "...
Returns a list of distributed virtual switch portgroups. The list can be filtered by the portgroup names or by the DVS. dvs Name of the DVS containing the portgroups. Default value is None. portgroup_names List of portgroup names to look for. If None, all portgroups are ret...
[ "Returns", "a", "list", "of", "distributed", "virtual", "switch", "portgroups", ".", "The", "list", "can", "be", "filtered", "by", "the", "portgroup", "names", "or", "by", "the", "DVS", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4204-L4253
train
Returns a list of distributed virtual switch portgroups.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_uplink_dvportgroup
def list_uplink_dvportgroup(dvs, service_instance=None): ''' Returns the uplink portgroup of a distributed virtual switch. dvs Name of the DVS containing the portgroup. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block::...
python
def list_uplink_dvportgroup(dvs, service_instance=None): ''' Returns the uplink portgroup of a distributed virtual switch. dvs Name of the DVS containing the portgroup. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block::...
[ "def", "list_uplink_dvportgroup", "(", "dvs", ",", "service_instance", "=", "None", ")", ":", "proxy_type", "=", "get_proxy_type", "(", ")", "if", "proxy_type", "==", "'esxdatacenter'", ":", "datacenter", "=", "__salt__", "[", "'esxdatacenter.get_details'", "]", "...
Returns the uplink portgroup of a distributed virtual switch. dvs Name of the DVS containing the portgroup. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_uplink_dvportgroup dvs=dvs_name
[ "Returns", "the", "uplink", "portgroup", "of", "a", "distributed", "virtual", "switch", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4259-L4286
train
Returns the uplink portgroup of a distributed virtual switch.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvportgroup_out_shaping
def _apply_dvportgroup_out_shaping(pg_name, out_shaping, out_shaping_conf): ''' Applies the values in out_shaping_conf to an out_shaping object pg_name The name of the portgroup out_shaping The vim.DVSTrafficShapingPolicy to apply the config to out_shaping_conf The out sha...
python
def _apply_dvportgroup_out_shaping(pg_name, out_shaping, out_shaping_conf): ''' Applies the values in out_shaping_conf to an out_shaping object pg_name The name of the portgroup out_shaping The vim.DVSTrafficShapingPolicy to apply the config to out_shaping_conf The out sha...
[ "def", "_apply_dvportgroup_out_shaping", "(", "pg_name", ",", "out_shaping", ",", "out_shaping_conf", ")", ":", "log", ".", "trace", "(", "'Building portgroup\\'s \\'%s\\' out shaping policy'", ",", "pg_name", ")", "if", "out_shaping_conf", ".", "get", "(", "'average_ba...
Applies the values in out_shaping_conf to an out_shaping object pg_name The name of the portgroup out_shaping The vim.DVSTrafficShapingPolicy to apply the config to out_shaping_conf The out shaping config
[ "Applies", "the", "values", "in", "out_shaping_conf", "to", "an", "out_shaping", "object" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4289-L4315
train
Applies the values in out_shaping_conf to an out_shaping object and returns the object
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvportgroup_security_policy
def _apply_dvportgroup_security_policy(pg_name, sec_policy, sec_policy_conf): ''' Applies the values in sec_policy_conf to a security policy object pg_name The name of the portgroup sec_policy The vim.DVSTrafficShapingPolicy to apply the config to sec_policy_conf The out s...
python
def _apply_dvportgroup_security_policy(pg_name, sec_policy, sec_policy_conf): ''' Applies the values in sec_policy_conf to a security policy object pg_name The name of the portgroup sec_policy The vim.DVSTrafficShapingPolicy to apply the config to sec_policy_conf The out s...
[ "def", "_apply_dvportgroup_security_policy", "(", "pg_name", ",", "sec_policy", ",", "sec_policy_conf", ")", ":", "log", ".", "trace", "(", "'Building portgroup\\'s \\'%s\\' security policy '", ",", "pg_name", ")", "if", "'allow_promiscuous'", "in", "sec_policy_conf", ":"...
Applies the values in sec_policy_conf to a security policy object pg_name The name of the portgroup sec_policy The vim.DVSTrafficShapingPolicy to apply the config to sec_policy_conf The out shaping config
[ "Applies", "the", "values", "in", "sec_policy_conf", "to", "a", "security", "policy", "object" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4318-L4341
train
Applies the values in sec_policy_conf to a security policy object
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvportgroup_teaming
def _apply_dvportgroup_teaming(pg_name, teaming, teaming_conf): ''' Applies the values in teaming_conf to a teaming policy object pg_name The name of the portgroup teaming The vim.VmwareUplinkPortTeamingPolicy to apply the config to teaming_conf The teaming config ''' ...
python
def _apply_dvportgroup_teaming(pg_name, teaming, teaming_conf): ''' Applies the values in teaming_conf to a teaming policy object pg_name The name of the portgroup teaming The vim.VmwareUplinkPortTeamingPolicy to apply the config to teaming_conf The teaming config ''' ...
[ "def", "_apply_dvportgroup_teaming", "(", "pg_name", ",", "teaming", ",", "teaming_conf", ")", ":", "log", ".", "trace", "(", "'Building portgroup\\'s \\'%s\\' teaming'", ",", "pg_name", ")", "if", "'notify_switches'", "in", "teaming_conf", ":", "teaming", ".", "not...
Applies the values in teaming_conf to a teaming policy object pg_name The name of the portgroup teaming The vim.VmwareUplinkPortTeamingPolicy to apply the config to teaming_conf The teaming config
[ "Applies", "the", "values", "in", "teaming_conf", "to", "a", "teaming", "policy", "object" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4344-L4410
train
Applies the values in teaming_conf to the specified portgroup teaming object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_dvportgroup_config
def _apply_dvportgroup_config(pg_name, pg_spec, pg_conf): ''' Applies the values in conf to a distributed portgroup spec pg_name The name of the portgroup pg_spec The vim.DVPortgroupConfigSpec to apply the config to pg_conf The portgroup config ''' log.trace('Build...
python
def _apply_dvportgroup_config(pg_name, pg_spec, pg_conf): ''' Applies the values in conf to a distributed portgroup spec pg_name The name of the portgroup pg_spec The vim.DVPortgroupConfigSpec to apply the config to pg_conf The portgroup config ''' log.trace('Build...
[ "def", "_apply_dvportgroup_config", "(", "pg_name", ",", "pg_spec", ",", "pg_conf", ")", ":", "log", ".", "trace", "(", "'Building portgroup\\'s \\'%s\\' spec'", ",", "pg_name", ")", "if", "'name'", "in", "pg_conf", ":", "pg_spec", ".", "name", "=", "pg_conf", ...
Applies the values in conf to a distributed portgroup spec pg_name The name of the portgroup pg_spec The vim.DVPortgroupConfigSpec to apply the config to pg_conf The portgroup config
[ "Applies", "the", "values", "in", "conf", "to", "a", "distributed", "portgroup", "spec" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4413-L4464
train
Applies the values in conf to a distributed portgroup spec
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_dvportgroup
def create_dvportgroup(portgroup_dict, portgroup_name, dvs, service_instance=None): ''' Creates a distributed virtual portgroup. Note: The ``portgroup_name`` param will override any name already set in ``portgroup_dict``. portgroup_dict Dictionary with the config val...
python
def create_dvportgroup(portgroup_dict, portgroup_name, dvs, service_instance=None): ''' Creates a distributed virtual portgroup. Note: The ``portgroup_name`` param will override any name already set in ``portgroup_dict``. portgroup_dict Dictionary with the config val...
[ "def", "create_dvportgroup", "(", "portgroup_dict", ",", "portgroup_name", ",", "dvs", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Creating portgroup\\'%s\\' in dvs \\'%s\\' '", "'with dict = %s'", ",", "portgroup_name", ",", "dvs", ","...
Creates a distributed virtual portgroup. Note: The ``portgroup_name`` param will override any name already set in ``portgroup_dict``. portgroup_dict Dictionary with the config values the portgroup should be created with (example in salt.states.dvs). portgroup_name Name of the ...
[ "Creates", "a", "distributed", "virtual", "portgroup", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4470-L4515
train
Creates a distributed virtual portgroup.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
update_dvportgroup
def update_dvportgroup(portgroup_dict, portgroup, dvs, service_instance=True): ''' Updates a distributed virtual portgroup. portgroup_dict Dictionary with the values the portgroup should be update with (example in salt.states.dvs). portgroup Name of the portgroup to be updated....
python
def update_dvportgroup(portgroup_dict, portgroup, dvs, service_instance=True): ''' Updates a distributed virtual portgroup. portgroup_dict Dictionary with the values the portgroup should be update with (example in salt.states.dvs). portgroup Name of the portgroup to be updated....
[ "def", "update_dvportgroup", "(", "portgroup_dict", ",", "portgroup", ",", "dvs", ",", "service_instance", "=", "True", ")", ":", "log", ".", "trace", "(", "'Updating portgroup\\'%s\\' in dvs \\'%s\\' '", "'with dict = %s'", ",", "portgroup", ",", "dvs", ",", "portg...
Updates a distributed virtual portgroup. portgroup_dict Dictionary with the values the portgroup should be update with (example in salt.states.dvs). portgroup Name of the portgroup to be updated. dvs Name of the DVS containing the portgroups. service_instance ...
[ "Updates", "a", "distributed", "virtual", "portgroup", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4521-L4575
train
Updates a distributed virtual portgroup with the values in portgroup_dict.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
remove_dvportgroup
def remove_dvportgroup(portgroup, dvs, service_instance=None): ''' Removes a distributed virtual portgroup. portgroup Name of the portgroup to be removed. dvs Name of the DVS containing the portgroups. service_instance Service instance (vim.ServiceInstance) of the vCenter....
python
def remove_dvportgroup(portgroup, dvs, service_instance=None): ''' Removes a distributed virtual portgroup. portgroup Name of the portgroup to be removed. dvs Name of the DVS containing the portgroups. service_instance Service instance (vim.ServiceInstance) of the vCenter....
[ "def", "remove_dvportgroup", "(", "portgroup", ",", "dvs", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Removing portgroup\\'%s\\' in dvs \\'%s\\''", ",", "portgroup", ",", "dvs", ")", "proxy_type", "=", "get_proxy_type", "(", ")", ...
Removes a distributed virtual portgroup. portgroup Name of the portgroup to be removed. dvs Name of the DVS containing the portgroups. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphe...
[ "Removes", "a", "distributed", "virtual", "portgroup", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4581-L4617
train
Removes a distributed virtual portgroup from the specified DVS.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_policy_dict
def _get_policy_dict(policy): '''Returns a dictionary representation of a policy''' profile_dict = {'name': policy.name, 'description': policy.description, 'resource_type': policy.resourceType.resourceType} subprofile_dicts = [] if isinstance(policy, pbm.profile.C...
python
def _get_policy_dict(policy): '''Returns a dictionary representation of a policy''' profile_dict = {'name': policy.name, 'description': policy.description, 'resource_type': policy.resourceType.resourceType} subprofile_dicts = [] if isinstance(policy, pbm.profile.C...
[ "def", "_get_policy_dict", "(", "policy", ")", ":", "profile_dict", "=", "{", "'name'", ":", "policy", ".", "name", ",", "'description'", ":", "policy", ".", "description", ",", "'resource_type'", ":", "policy", ".", "resourceType", ".", "resourceType", "}", ...
Returns a dictionary representation of a policy
[ "Returns", "a", "dictionary", "representation", "of", "a", "policy" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4620-L4654
train
Returns a dictionary representation of a policy
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_storage_policies
def list_storage_policies(policy_names=None, service_instance=None): ''' Returns a list of storage policies. policy_names Names of policies to list. If None, all policies are listed. Default is None. service_instance Service instance (vim.ServiceInstance) of the vCenter. ...
python
def list_storage_policies(policy_names=None, service_instance=None): ''' Returns a list of storage policies. policy_names Names of policies to list. If None, all policies are listed. Default is None. service_instance Service instance (vim.ServiceInstance) of the vCenter. ...
[ "def", "list_storage_policies", "(", "policy_names", "=", "None", ",", "service_instance", "=", "None", ")", ":", "profile_manager", "=", "salt", ".", "utils", ".", "pbm", ".", "get_profile_manager", "(", "service_instance", ")", "if", "not", "policy_names", ":"...
Returns a list of storage policies. policy_names Names of policies to list. If None, all policies are listed. Default is None. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_stora...
[ "Returns", "a", "list", "of", "storage", "policies", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4660-L4685
train
Returns a list of storage policies.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_default_vsan_policy
def list_default_vsan_policy(service_instance=None): ''' Returns the default vsan storage policy. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_storage_policies salt '*' vsphere.list...
python
def list_default_vsan_policy(service_instance=None): ''' Returns the default vsan storage policy. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_storage_policies salt '*' vsphere.list...
[ "def", "list_default_vsan_policy", "(", "service_instance", "=", "None", ")", ":", "profile_manager", "=", "salt", ".", "utils", ".", "pbm", ".", "get_profile_manager", "(", "service_instance", ")", "policies", "=", "salt", ".", "utils", ".", "pbm", ".", "get_...
Returns the default vsan storage policy. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_storage_policies salt '*' vsphere.list_storage_policy policy_names=[policy_name]
[ "Returns", "the", "default", "vsan", "storage", "policy", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4691-L4713
train
Returns the default vsan storage policy.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_capability_definitions
def list_capability_definitions(service_instance=None): ''' Returns a list of the metadata of all capabilities in the vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_capabilities '...
python
def list_capability_definitions(service_instance=None): ''' Returns a list of the metadata of all capabilities in the vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_capabilities '...
[ "def", "list_capability_definitions", "(", "service_instance", "=", "None", ")", ":", "profile_manager", "=", "salt", ".", "utils", ".", "pbm", ".", "get_profile_manager", "(", "service_instance", ")", "ret_list", "=", "[", "_get_capability_definition_dict", "(", "c...
Returns a list of the metadata of all capabilities in the vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.list_capabilities
[ "Returns", "a", "list", "of", "the", "metadata", "of", "all", "capabilities", "in", "the", "vCenter", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4730-L4745
train
Returns a list of the metadata of all capabilities in the vCenter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_policy_config
def _apply_policy_config(policy_spec, policy_dict): '''Applies a policy dictionary to a policy spec''' log.trace('policy_dict = %s', policy_dict) if policy_dict.get('name'): policy_spec.name = policy_dict['name'] if policy_dict.get('description'): policy_spec.description = policy_dict['d...
python
def _apply_policy_config(policy_spec, policy_dict): '''Applies a policy dictionary to a policy spec''' log.trace('policy_dict = %s', policy_dict) if policy_dict.get('name'): policy_spec.name = policy_dict['name'] if policy_dict.get('description'): policy_spec.description = policy_dict['d...
[ "def", "_apply_policy_config", "(", "policy_spec", ",", "policy_dict", ")", ":", "log", ".", "trace", "(", "'policy_dict = %s'", ",", "policy_dict", ")", "if", "policy_dict", ".", "get", "(", "'name'", ")", ":", "policy_spec", ".", "name", "=", "policy_dict", ...
Applies a policy dictionary to a policy spec
[ "Applies", "a", "policy", "dictionary", "to", "a", "policy", "spec" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4748-L4794
train
Applies a dictionary to a policy spec
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_storage_policy
def create_storage_policy(policy_name, policy_dict, service_instance=None): ''' Creates a storage policy. Supported capability types: scalar, set, range. policy_name Name of the policy to create. The value of the argument will override any existing name in ``policy_dict``. ...
python
def create_storage_policy(policy_name, policy_dict, service_instance=None): ''' Creates a storage policy. Supported capability types: scalar, set, range. policy_name Name of the policy to create. The value of the argument will override any existing name in ``policy_dict``. ...
[ "def", "create_storage_policy", "(", "policy_name", ",", "policy_dict", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'create storage policy \\'%s\\', dict = %s'", ",", "policy_name", ",", "policy_dict", ")", "profile_manager", "=", "salt"...
Creates a storage policy. Supported capability types: scalar, set, range. policy_name Name of the policy to create. The value of the argument will override any existing name in ``policy_dict``. policy_dict Dictionary containing the changes to apply to the policy. (...
[ "Creates", "a", "storage", "policy", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4800-L4835
train
Creates a storage policy with the given name and dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
update_storage_policy
def update_storage_policy(policy, policy_dict, service_instance=None): ''' Updates a storage policy. Supported capability types: scalar, set, range. policy Name of the policy to update. policy_dict Dictionary containing the changes to apply to the policy. (example in salt....
python
def update_storage_policy(policy, policy_dict, service_instance=None): ''' Updates a storage policy. Supported capability types: scalar, set, range. policy Name of the policy to update. policy_dict Dictionary containing the changes to apply to the policy. (example in salt....
[ "def", "update_storage_policy", "(", "policy", ",", "policy_dict", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'updating storage policy, dict = %s'", ",", "policy_dict", ")", "profile_manager", "=", "salt", ".", "utils", ".", "pbm", ...
Updates a storage policy. Supported capability types: scalar, set, range. policy Name of the policy to update. policy_dict Dictionary containing the changes to apply to the policy. (example in salt.states.pbm) service_instance Service instance (vim.ServiceInstance) of...
[ "Updates", "a", "storage", "policy", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4841-L4877
train
Updates a storage policy with the given dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_default_storage_policy_of_datastore
def list_default_storage_policy_of_datastore(datastore, service_instance=None): ''' Returns a list of datastores assign the the storage policies. datastore Name of the datastore to assign. The datastore needs to be visible to the VMware entity the proxy points to. service_insta...
python
def list_default_storage_policy_of_datastore(datastore, service_instance=None): ''' Returns a list of datastores assign the the storage policies. datastore Name of the datastore to assign. The datastore needs to be visible to the VMware entity the proxy points to. service_insta...
[ "def", "list_default_storage_policy_of_datastore", "(", "datastore", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Listing the default storage policy of datastore \\'%s\\''", ",", "datastore", ")", "# Find datastore", "target_ref", "=", "_get_p...
Returns a list of datastores assign the the storage policies. datastore Name of the datastore to assign. The datastore needs to be visible to the VMware entity the proxy points to. service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. ...
[ "Returns", "a", "list", "of", "datastores", "assign", "the", "the", "storage", "policies", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4883-L4911
train
Returns a list of datastores assign the storage policies.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
assign_default_storage_policy_to_datastore
def assign_default_storage_policy_to_datastore(policy, datastore, service_instance=None): ''' Assigns a storage policy as the default policy to a datastore. policy Name of the policy to assign. datastore Name of the datastore to assign. ...
python
def assign_default_storage_policy_to_datastore(policy, datastore, service_instance=None): ''' Assigns a storage policy as the default policy to a datastore. policy Name of the policy to assign. datastore Name of the datastore to assign. ...
[ "def", "assign_default_storage_policy_to_datastore", "(", "policy", ",", "datastore", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Assigning policy %s to datastore %s'", ",", "policy", ",", "datastore", ")", "profile_manager", "=", "salt...
Assigns a storage policy as the default policy to a datastore. policy Name of the policy to assign. datastore Name of the datastore to assign. The datastore needs to be visible to the VMware entity the proxy points to. service_instance Service instance (vim.Service...
[ "Assigns", "a", "storage", "policy", "as", "the", "default", "policy", "to", "a", "datastore", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4917-L4957
train
Assigns a storage policy as the default policy to a datastore.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_datacenters_via_proxy
def list_datacenters_via_proxy(datacenter_names=None, service_instance=None): ''' Returns a list of dict representations of VMware datacenters. Connection is done via the proxy details. Supported proxies: esxdatacenter datacenter_names List of datacenter names. Default is None. ...
python
def list_datacenters_via_proxy(datacenter_names=None, service_instance=None): ''' Returns a list of dict representations of VMware datacenters. Connection is done via the proxy details. Supported proxies: esxdatacenter datacenter_names List of datacenter names. Default is None. ...
[ "def", "list_datacenters_via_proxy", "(", "datacenter_names", "=", "None", ",", "service_instance", "=", "None", ")", ":", "if", "not", "datacenter_names", ":", "dc_refs", "=", "salt", ".", "utils", ".", "vmware", ".", "get_datacenters", "(", "service_instance", ...
Returns a list of dict representations of VMware datacenters. Connection is done via the proxy details. Supported proxies: esxdatacenter datacenter_names List of datacenter names. Default is None. service_instance Service instance (vim.ServiceInstance) of the vCenter. ...
[ "Returns", "a", "list", "of", "dict", "representations", "of", "VMware", "datacenters", ".", "Connection", "is", "done", "via", "the", "proxy", "details", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L4963-L4996
train
Returns a list of dict representations of VMware datacenters.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_datacenter
def create_datacenter(datacenter_name, service_instance=None): ''' Creates a datacenter. Supported proxies: esxdatacenter datacenter_name The datacenter name service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash ...
python
def create_datacenter(datacenter_name, service_instance=None): ''' Creates a datacenter. Supported proxies: esxdatacenter datacenter_name The datacenter name service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash ...
[ "def", "create_datacenter", "(", "datacenter_name", ",", "service_instance", "=", "None", ")", ":", "salt", ".", "utils", ".", "vmware", ".", "create_datacenter", "(", "service_instance", ",", "datacenter_name", ")", "return", "{", "'create_datacenter'", ":", "Tru...
Creates a datacenter. Supported proxies: esxdatacenter datacenter_name The datacenter name service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. .. code-block:: bash salt '*' vsphere.create_datacenter dc1
[ "Creates", "a", "datacenter", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5002-L5020
train
Creates a datacenter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_cluster_dict
def _get_cluster_dict(cluster_name, cluster_ref): ''' Returns a cluster dict representation from a vim.ClusterComputeResource object. cluster_name Name of the cluster cluster_ref Reference to the cluster ''' log.trace('Building a dictionary representation of cluster \'%s\'...
python
def _get_cluster_dict(cluster_name, cluster_ref): ''' Returns a cluster dict representation from a vim.ClusterComputeResource object. cluster_name Name of the cluster cluster_ref Reference to the cluster ''' log.trace('Building a dictionary representation of cluster \'%s\'...
[ "def", "_get_cluster_dict", "(", "cluster_name", ",", "cluster_ref", ")", ":", "log", ".", "trace", "(", "'Building a dictionary representation of cluster \\'%s\\''", ",", "cluster_name", ")", "props", "=", "salt", ".", "utils", ".", "vmware", ".", "get_properties_of_...
Returns a cluster dict representation from a vim.ClusterComputeResource object. cluster_name Name of the cluster cluster_ref Reference to the cluster
[ "Returns", "a", "cluster", "dict", "representation", "from", "a", "vim", ".", "ClusterComputeResource", "object", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5023-L5101
train
Returns a dictionary representation of a cluster object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_cluster
def list_cluster(datacenter=None, cluster=None, service_instance=None): ''' Returns a dict representation of an ESX cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained by proxy details. Default value is None. cluster Name of clust...
python
def list_cluster(datacenter=None, cluster=None, service_instance=None): ''' Returns a dict representation of an ESX cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained by proxy details. Default value is None. cluster Name of clust...
[ "def", "list_cluster", "(", "datacenter", "=", "None", ",", "cluster", "=", "None", ",", "service_instance", "=", "None", ")", ":", "proxy_type", "=", "get_proxy_type", "(", ")", "if", "proxy_type", "==", "'esxdatacenter'", ":", "dc_ref", "=", "_get_proxy_targ...
Returns a dict representation of an ESX cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained by proxy details. Default value is None. cluster Name of cluster. Ignored if already contained by proxy details. Default value is ...
[ "Returns", "a", "dict", "representation", "of", "an", "ESX", "cluster", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5107-L5147
train
Returns a dict representation of an ESX cluster.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_cluster_dict
def _apply_cluster_dict(cluster_spec, cluster_dict, vsan_spec=None, vsan_61=True): ''' Applies the values of cluster_dict dictionary to a cluster spec (vim.ClusterConfigSpecEx). All vsan values (cluster_dict['vsan']) will be applied to vsan_spec (vim.vsan.cluster.ConfigInfoE...
python
def _apply_cluster_dict(cluster_spec, cluster_dict, vsan_spec=None, vsan_61=True): ''' Applies the values of cluster_dict dictionary to a cluster spec (vim.ClusterConfigSpecEx). All vsan values (cluster_dict['vsan']) will be applied to vsan_spec (vim.vsan.cluster.ConfigInfoE...
[ "def", "_apply_cluster_dict", "(", "cluster_spec", ",", "cluster_dict", ",", "vsan_spec", "=", "None", ",", "vsan_61", "=", "True", ")", ":", "log", ".", "trace", "(", "'Applying cluster dict %s'", ",", "cluster_dict", ")", "if", "cluster_dict", ".", "get", "(...
Applies the values of cluster_dict dictionary to a cluster spec (vim.ClusterConfigSpecEx). All vsan values (cluster_dict['vsan']) will be applied to vsan_spec (vim.vsan.cluster.ConfigInfoEx). Can be not omitted if not required. VSAN 6.1 config needs to be applied differently than the post VSAN 6.1...
[ "Applies", "the", "values", "of", "cluster_dict", "dictionary", "to", "a", "cluster", "spec", "(", "vim", ".", "ClusterConfigSpecEx", ")", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5150-L5278
train
Applies the values of cluster_dict dictionary to a cluster spec and returns a vim. ClusterConfigSpecEx object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_cluster
def create_cluster(cluster_dict, datacenter=None, cluster=None, service_instance=None): ''' Creates a cluster. Note: cluster_dict['name'] will be overridden by the cluster param value config_dict Dictionary with the config values of the new cluster. datacenter N...
python
def create_cluster(cluster_dict, datacenter=None, cluster=None, service_instance=None): ''' Creates a cluster. Note: cluster_dict['name'] will be overridden by the cluster param value config_dict Dictionary with the config values of the new cluster. datacenter N...
[ "def", "create_cluster", "(", "cluster_dict", ",", "datacenter", "=", "None", ",", "cluster", "=", "None", ",", "service_instance", "=", "None", ")", ":", "# Validate cluster dictionary", "schema", "=", "ESXClusterConfigSchema", ".", "serialize", "(", ")", "try", ...
Creates a cluster. Note: cluster_dict['name'] will be overridden by the cluster param value config_dict Dictionary with the config values of the new cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained by proxy details. Default value ...
[ "Creates", "a", "cluster", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5285-L5374
train
Creates a new cluster.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
update_cluster
def update_cluster(cluster_dict, datacenter=None, cluster=None, service_instance=None): ''' Updates a cluster. config_dict Dictionary with the config values of the new cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained...
python
def update_cluster(cluster_dict, datacenter=None, cluster=None, service_instance=None): ''' Updates a cluster. config_dict Dictionary with the config values of the new cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained...
[ "def", "update_cluster", "(", "cluster_dict", ",", "datacenter", "=", "None", ",", "cluster", "=", "None", ",", "service_instance", "=", "None", ")", ":", "# Validate cluster dictionary", "schema", "=", "ESXClusterConfigSchema", ".", "serialize", "(", ")", "try", ...
Updates a cluster. config_dict Dictionary with the config values of the new cluster. datacenter Name of datacenter containing the cluster. Ignored if already contained by proxy details. Default value is None. cluster Name of cluster. Ignored if already cont...
[ "Updates", "a", "cluster", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5381-L5486
train
Updates a cluster with the given dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_datastores_via_proxy
def list_datastores_via_proxy(datastore_names=None, backing_disk_ids=None, backing_disk_scsi_addresses=None, service_instance=None): ''' Returns a list of dict representations of the datastores visible to the proxy object. The list of datastores ca...
python
def list_datastores_via_proxy(datastore_names=None, backing_disk_ids=None, backing_disk_scsi_addresses=None, service_instance=None): ''' Returns a list of dict representations of the datastores visible to the proxy object. The list of datastores ca...
[ "def", "list_datastores_via_proxy", "(", "datastore_names", "=", "None", ",", "backing_disk_ids", "=", "None", ",", "backing_disk_scsi_addresses", "=", "None", ",", "service_instance", "=", "None", ")", ":", "target", "=", "_get_proxy_target", "(", "service_instance",...
Returns a list of dict representations of the datastores visible to the proxy object. The list of datastores can be filtered by datastore names, backing disk ids (canonical names) or backing disk scsi addresses. Supported proxy types: esxi, esxcluster, esxdatacenter datastore_names List of the...
[ "Returns", "a", "list", "of", "dict", "representations", "of", "the", "datastores", "visible", "to", "the", "proxy", "object", ".", "The", "list", "of", "datastores", "can", "be", "filtered", "by", "datastore", "names", "backing", "disk", "ids", "(", "canoni...
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5492-L5571
train
Returns a list of dict representations of the datastores visible to the specified proxy object.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_vmfs_datastore
def create_vmfs_datastore(datastore_name, disk_id, vmfs_major_version, safety_checks=True, service_instance=None): ''' Creates a ESXi host disk group with the specified cache and capacity disks. datastore_name The name of the datastore to be created. disk_id T...
python
def create_vmfs_datastore(datastore_name, disk_id, vmfs_major_version, safety_checks=True, service_instance=None): ''' Creates a ESXi host disk group with the specified cache and capacity disks. datastore_name The name of the datastore to be created. disk_id T...
[ "def", "create_vmfs_datastore", "(", "datastore_name", ",", "disk_id", ",", "vmfs_major_version", ",", "safety_checks", "=", "True", ",", "service_instance", "=", "None", ")", ":", "log", ".", "debug", "(", "'Validating vmfs datastore input'", ")", "schema", "=", ...
Creates a ESXi host disk group with the specified cache and capacity disks. datastore_name The name of the datastore to be created. disk_id The disk id (canonical name) on which the datastore is created. vmfs_major_version The VMFS major version. safety_checks Specify...
[ "Creates", "a", "ESXi", "host", "disk", "group", "with", "the", "specified", "cache", "and", "capacity", "disks", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5578-L5625
train
Creates a VMFS datastore.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
rename_datastore
def rename_datastore(datastore_name, new_datastore_name, service_instance=None): ''' Renames a datastore. The datastore needs to be visible to the proxy. datastore_name Current datastore name. new_datastore_name New datastore name. service_instance Ser...
python
def rename_datastore(datastore_name, new_datastore_name, service_instance=None): ''' Renames a datastore. The datastore needs to be visible to the proxy. datastore_name Current datastore name. new_datastore_name New datastore name. service_instance Ser...
[ "def", "rename_datastore", "(", "datastore_name", ",", "new_datastore_name", ",", "service_instance", "=", "None", ")", ":", "# Argument validation", "log", ".", "trace", "(", "'Renaming datastore %s to %s'", ",", "datastore_name", ",", "new_datastore_name", ")", "targe...
Renames a datastore. The datastore needs to be visible to the proxy. datastore_name Current datastore name. new_datastore_name New datastore name. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash ...
[ "Renames", "a", "datastore", ".", "The", "datastore", "needs", "to", "be", "visible", "to", "the", "proxy", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5631-L5662
train
Renames a datastore.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
remove_datastore
def remove_datastore(datastore, service_instance=None): ''' Removes a datastore. If multiple datastores an error is raised. datastore Datastore name service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash ...
python
def remove_datastore(datastore, service_instance=None): ''' Removes a datastore. If multiple datastores an error is raised. datastore Datastore name service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash ...
[ "def", "remove_datastore", "(", "datastore", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Removing datastore \\'%s\\''", ",", "datastore", ")", "target", "=", "_get_proxy_target", "(", "service_instance", ")", "datastores", "=", "sal...
Removes a datastore. If multiple datastores an error is raised. datastore Datastore name service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.remove_datastore ds_name
[ "Removes", "a", "datastore", ".", "If", "multiple", "datastores", "an", "error", "is", "raised", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5668-L5696
train
Removes a datastore from the specified service instance.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_licenses
def list_licenses(service_instance=None): ''' Lists all licenses on a vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.list_licenses ''' log.trace('Retrieving all licenses'...
python
def list_licenses(service_instance=None): ''' Lists all licenses on a vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.list_licenses ''' log.trace('Retrieving all licenses'...
[ "def", "list_licenses", "(", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Retrieving all licenses'", ")", "licenses", "=", "salt", ".", "utils", ".", "vmware", ".", "get_licenses", "(", "service_instance", ")", "ret_dict", "=", "[", ...
Lists all licenses on a vCenter. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.list_licenses
[ "Lists", "all", "licenses", "on", "a", "vCenter", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5702-L5723
train
Lists all licenses on a vCenter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
add_license
def add_license(key, description, safety_checks=True, service_instance=None): ''' Adds a license to the vCenter or ESXi host key License key. description License description added in as a label. safety_checks Specify whether to perform safety check or to sk...
python
def add_license(key, description, safety_checks=True, service_instance=None): ''' Adds a license to the vCenter or ESXi host key License key. description License description added in as a label. safety_checks Specify whether to perform safety check or to sk...
[ "def", "add_license", "(", "key", ",", "description", ",", "safety_checks", "=", "True", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Adding license \\'%s\\''", ",", "key", ")", "salt", ".", "utils", ".", "vmware", ".", "add_...
Adds a license to the vCenter or ESXi host key License key. description License description added in as a label. safety_checks Specify whether to perform safety check or to skip the checks and try performing the required task service_instance Service instance ...
[ "Adds", "a", "license", "to", "the", "vCenter", "or", "ESXi", "host" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5729-L5754
train
Adds a license to the vCenter or ESXi host.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_entity
def _get_entity(service_instance, entity): ''' Returns the entity associated with the entity dict representation Supported entities: cluster, vcenter Expected entity format: .. code-block:: python cluster: {'type': 'cluster', 'datacenter': <datacenter_name>, ...
python
def _get_entity(service_instance, entity): ''' Returns the entity associated with the entity dict representation Supported entities: cluster, vcenter Expected entity format: .. code-block:: python cluster: {'type': 'cluster', 'datacenter': <datacenter_name>, ...
[ "def", "_get_entity", "(", "service_instance", ",", "entity", ")", ":", "log", ".", "trace", "(", "'Retrieving entity: %s'", ",", "entity", ")", "if", "entity", "[", "'type'", "]", "==", "'cluster'", ":", "dc_ref", "=", "salt", ".", "utils", ".", "vmware",...
Returns the entity associated with the entity dict representation Supported entities: cluster, vcenter Expected entity format: .. code-block:: python cluster: {'type': 'cluster', 'datacenter': <datacenter_name>, 'cluster': <cluster_name>} vcenter: ...
[ "Returns", "the", "entity", "associated", "with", "the", "entity", "dict", "representation" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5757-L5789
train
Returns the entity associated with the entity dict representation
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_validate_entity
def _validate_entity(entity): ''' Validates the entity dict representation entity Dictionary representation of an entity. See ``_get_entity`` docstrings for format. ''' #Validate entity: if entity['type'] == 'cluster': schema = ESXClusterEntitySchema.serialize() eli...
python
def _validate_entity(entity): ''' Validates the entity dict representation entity Dictionary representation of an entity. See ``_get_entity`` docstrings for format. ''' #Validate entity: if entity['type'] == 'cluster': schema = ESXClusterEntitySchema.serialize() eli...
[ "def", "_validate_entity", "(", "entity", ")", ":", "#Validate entity:", "if", "entity", "[", "'type'", "]", "==", "'cluster'", ":", "schema", "=", "ESXClusterEntitySchema", ".", "serialize", "(", ")", "elif", "entity", "[", "'type'", "]", "==", "'vcenter'", ...
Validates the entity dict representation entity Dictionary representation of an entity. See ``_get_entity`` docstrings for format.
[ "Validates", "the", "entity", "dict", "representation" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5792-L5812
train
Validate the entity dict representation
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_assigned_licenses
def list_assigned_licenses(entity, entity_display_name, license_keys=None, service_instance=None): ''' Lists the licenses assigned to an entity entity Dictionary representation of an entity. See ``_get_entity`` docstrings for format. entity_display_name ...
python
def list_assigned_licenses(entity, entity_display_name, license_keys=None, service_instance=None): ''' Lists the licenses assigned to an entity entity Dictionary representation of an entity. See ``_get_entity`` docstrings for format. entity_display_name ...
[ "def", "list_assigned_licenses", "(", "entity", ",", "entity_display_name", ",", "license_keys", "=", "None", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Listing assigned licenses of entity %s'", ",", "entity", ")", "_validate_entity", ...
Lists the licenses assigned to an entity entity Dictionary representation of an entity. See ``_get_entity`` docstrings for format. entity_display_name Entity name used in logging license_keys: List of license keys to be retrieved. Default is None. service_instance ...
[ "Lists", "the", "licenses", "assigned", "to", "an", "entity" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5819-L5858
train
Lists the assigned licenses of an entity.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
assign_license
def assign_license(license_key, license_name, entity, entity_display_name, safety_checks=True, service_instance=None): ''' Assigns a license to an entity license_key Key of the license to assign See ``_get_entity`` docstrings for format. license_name Display ...
python
def assign_license(license_key, license_name, entity, entity_display_name, safety_checks=True, service_instance=None): ''' Assigns a license to an entity license_key Key of the license to assign See ``_get_entity`` docstrings for format. license_name Display ...
[ "def", "assign_license", "(", "license_key", ",", "license_name", ",", "entity", ",", "entity_display_name", ",", "safety_checks", "=", "True", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Assigning license %s to entity %s'", ",", "l...
Assigns a license to an entity license_key Key of the license to assign See ``_get_entity`` docstrings for format. license_name Display name of license entity Dictionary representation of an entity entity_display_name Entity name used in logging safety_ch...
[ "Assigns", "a", "license", "to", "an", "entity" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5865-L5908
train
Assigns a license to an entity.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_hosts_via_proxy
def list_hosts_via_proxy(hostnames=None, datacenter=None, cluster=None, service_instance=None): ''' Returns a list of hosts for the the specified VMware environment. The list of hosts can be filtered by datacenter name and/or cluster name hostnames Hostnames to filter o...
python
def list_hosts_via_proxy(hostnames=None, datacenter=None, cluster=None, service_instance=None): ''' Returns a list of hosts for the the specified VMware environment. The list of hosts can be filtered by datacenter name and/or cluster name hostnames Hostnames to filter o...
[ "def", "list_hosts_via_proxy", "(", "hostnames", "=", "None", ",", "datacenter", "=", "None", ",", "cluster", "=", "None", ",", "service_instance", "=", "None", ")", ":", "if", "cluster", ":", "if", "not", "datacenter", ":", "raise", "salt", ".", "exceptio...
Returns a list of hosts for the the specified VMware environment. The list of hosts can be filtered by datacenter name and/or cluster name hostnames Hostnames to filter on. datacenter_name Name of datacenter. Only hosts in this datacenter will be retrieved. Default is None. cl...
[ "Returns", "a", "list", "of", "hosts", "for", "the", "the", "specified", "VMware", "environment", ".", "The", "list", "of", "hosts", "can", "be", "filtered", "by", "datacenter", "name", "and", "/", "or", "cluster", "name" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5914-L5958
train
Returns a list of hosts for the specified VMware environment via a proxy.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_disks
def list_disks(disk_ids=None, scsi_addresses=None, service_instance=None): ''' Returns a list of dict representations of the disks in an ESXi host. The list of disks can be filtered by disk canonical names or scsi addresses. disk_ids: List of disk canonical names to be retrieved. Default is...
python
def list_disks(disk_ids=None, scsi_addresses=None, service_instance=None): ''' Returns a list of dict representations of the disks in an ESXi host. The list of disks can be filtered by disk canonical names or scsi addresses. disk_ids: List of disk canonical names to be retrieved. Default is...
[ "def", "list_disks", "(", "disk_ids", "=", "None", ",", "scsi_addresses", "=", "None", ",", "service_instance", "=", "None", ")", ":", "host_ref", "=", "_get_proxy_target", "(", "service_instance", ")", "hostname", "=", "__proxy__", "[", "'esxi.get_details'", "]...
Returns a list of dict representations of the disks in an ESXi host. The list of disks can be filtered by disk canonical names or scsi addresses. disk_ids: List of disk canonical names to be retrieved. Default is None. scsi_addresses List of scsi addresses of disks to be retrieved. Def...
[ "Returns", "a", "list", "of", "dict", "representations", "of", "the", "disks", "in", "an", "ESXi", "host", ".", "The", "list", "of", "disks", "can", "be", "filtered", "by", "disk", "canonical", "names", "or", "scsi", "addresses", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L5964-L6008
train
Returns a list of dictionaries representations of the disks in an ESXi host.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
erase_disk_partitions
def erase_disk_partitions(disk_id=None, scsi_address=None, service_instance=None): ''' Erases the partitions on a disk. The disk can be specified either by the canonical name, or by the scsi_address. disk_id Canonical name of the disk. Either ``disk_id`` or...
python
def erase_disk_partitions(disk_id=None, scsi_address=None, service_instance=None): ''' Erases the partitions on a disk. The disk can be specified either by the canonical name, or by the scsi_address. disk_id Canonical name of the disk. Either ``disk_id`` or...
[ "def", "erase_disk_partitions", "(", "disk_id", "=", "None", ",", "scsi_address", "=", "None", ",", "service_instance", "=", "None", ")", ":", "if", "not", "disk_id", "and", "not", "scsi_address", ":", "raise", "ArgumentValueError", "(", "'Either \\'disk_id\\' or ...
Erases the partitions on a disk. The disk can be specified either by the canonical name, or by the scsi_address. disk_id Canonical name of the disk. Either ``disk_id`` or ``scsi_address`` needs to be specified (``disk_id`` supersedes ``scsi_address``. scsi_address Scsi ...
[ "Erases", "the", "partitions", "on", "a", "disk", ".", "The", "disk", "can", "be", "specified", "either", "by", "the", "canonical", "name", "or", "by", "the", "scsi_address", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6014-L6063
train
Erases the partitions on a disk.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_disk_partitions
def list_disk_partitions(disk_id=None, scsi_address=None, service_instance=None): ''' Lists the partitions on a disk. The disk can be specified either by the canonical name, or by the scsi_address. disk_id Canonical name of the disk. Either ``disk_id`` or `...
python
def list_disk_partitions(disk_id=None, scsi_address=None, service_instance=None): ''' Lists the partitions on a disk. The disk can be specified either by the canonical name, or by the scsi_address. disk_id Canonical name of the disk. Either ``disk_id`` or `...
[ "def", "list_disk_partitions", "(", "disk_id", "=", "None", ",", "scsi_address", "=", "None", ",", "service_instance", "=", "None", ")", ":", "if", "not", "disk_id", "and", "not", "scsi_address", ":", "raise", "ArgumentValueError", "(", "'Either \\'disk_id\\' or \...
Lists the partitions on a disk. The disk can be specified either by the canonical name, or by the scsi_address. disk_id Canonical name of the disk. Either ``disk_id`` or ``scsi_address`` needs to be specified (``disk_id`` supersedes ``scsi_address``. scsi_address` Scsi ...
[ "Lists", "the", "partitions", "on", "a", "disk", ".", "The", "disk", "can", "be", "specified", "either", "by", "the", "canonical", "name", "or", "by", "the", "scsi_address", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6069-L6132
train
This function lists the partitions on a disk.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
list_diskgroups
def list_diskgroups(cache_disk_ids=None, service_instance=None): ''' Returns a list of disk group dict representation on an ESXi host. The list of disk groups can be filtered by the cache disks canonical names. If no filtering is applied, all disk groups are returned. cache_disk_ids: List o...
python
def list_diskgroups(cache_disk_ids=None, service_instance=None): ''' Returns a list of disk group dict representation on an ESXi host. The list of disk groups can be filtered by the cache disks canonical names. If no filtering is applied, all disk groups are returned. cache_disk_ids: List o...
[ "def", "list_diskgroups", "(", "cache_disk_ids", "=", "None", ",", "service_instance", "=", "None", ")", ":", "host_ref", "=", "_get_proxy_target", "(", "service_instance", ")", "hostname", "=", "__proxy__", "[", "'esxi.get_details'", "]", "(", ")", "[", "'esxi_...
Returns a list of disk group dict representation on an ESXi host. The list of disk groups can be filtered by the cache disks canonical names. If no filtering is applied, all disk groups are returned. cache_disk_ids: List of cache disk canonical names of the disk groups to be retrieved. Defa...
[ "Returns", "a", "list", "of", "disk", "group", "dict", "representation", "on", "an", "ESXi", "host", ".", "The", "list", "of", "disk", "groups", "can", "be", "filtered", "by", "the", "cache", "disks", "canonical", "names", ".", "If", "no", "filtering", "...
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6138-L6172
train
Returns a list of disk groups on an ESXi host.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
create_diskgroup
def create_diskgroup(cache_disk_id, capacity_disk_ids, safety_checks=True, service_instance=None): ''' Creates disk group on an ESXi host with the specified cache and capacity disks. cache_disk_id The canonical name of the disk to be used as a cache. The disk must be ...
python
def create_diskgroup(cache_disk_id, capacity_disk_ids, safety_checks=True, service_instance=None): ''' Creates disk group on an ESXi host with the specified cache and capacity disks. cache_disk_id The canonical name of the disk to be used as a cache. The disk must be ...
[ "def", "create_diskgroup", "(", "cache_disk_id", ",", "capacity_disk_ids", ",", "safety_checks", "=", "True", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Validating diskgroup input'", ")", "schema", "=", "DiskGroupsDiskIdSchema", ".",...
Creates disk group on an ESXi host with the specified cache and capacity disks. cache_disk_id The canonical name of the disk to be used as a cache. The disk must be ssd. capacity_disk_ids A list containing canonical names of the capacity disks. Must contain at least one id....
[ "Creates", "disk", "group", "on", "an", "ESXi", "host", "with", "the", "specified", "cache", "and", "capacity", "disks", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6179-L6241
train
Creates a disk group on an ESXi host with the specified cache and capacity disks.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
remove_diskgroup
def remove_diskgroup(cache_disk_id, data_accessibility=True, service_instance=None): ''' Remove the diskgroup with the specified cache disk. cache_disk_id The canonical name of the cache disk. data_accessibility Specifies whether to ensure data accessibility. Defau...
python
def remove_diskgroup(cache_disk_id, data_accessibility=True, service_instance=None): ''' Remove the diskgroup with the specified cache disk. cache_disk_id The canonical name of the cache disk. data_accessibility Specifies whether to ensure data accessibility. Defau...
[ "def", "remove_diskgroup", "(", "cache_disk_id", ",", "data_accessibility", "=", "True", ",", "service_instance", "=", "None", ")", ":", "log", ".", "trace", "(", "'Validating diskgroup input'", ")", "host_ref", "=", "_get_proxy_target", "(", "service_instance", ")"...
Remove the diskgroup with the specified cache disk. cache_disk_id The canonical name of the cache disk. data_accessibility Specifies whether to ensure data accessibility. Default value is True. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. ...
[ "Remove", "the", "diskgroup", "with", "the", "specified", "cache", "disk", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6380-L6413
train
This function removes the diskgroup with the specified cache disk.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
get_host_cache
def get_host_cache(service_instance=None): ''' Returns the host cache configuration on the proxy host. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.get_host_cache ''' # Default ...
python
def get_host_cache(service_instance=None): ''' Returns the host cache configuration on the proxy host. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.get_host_cache ''' # Default ...
[ "def", "get_host_cache", "(", "service_instance", "=", "None", ")", ":", "# Default to getting all disks if no filtering is done", "ret_dict", "=", "{", "}", "host_ref", "=", "_get_proxy_target", "(", "service_instance", ")", "hostname", "=", "__proxy__", "[", "'esxi.ge...
Returns the host cache configuration on the proxy host. service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. Default is None. .. code-block:: bash salt '*' vsphere.get_host_cache
[ "Returns", "the", "host", "cache", "configuration", "on", "the", "proxy", "host", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6419-L6444
train
Returns the host cache configuration on the proxy host.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
configure_host_cache
def configure_host_cache(enabled, datastore=None, swap_size_MiB=None, service_instance=None): ''' Configures the host cache on the selected host. enabled Boolean flag specifying whether the host cache is enabled. datastore Name of the datastore that contains th...
python
def configure_host_cache(enabled, datastore=None, swap_size_MiB=None, service_instance=None): ''' Configures the host cache on the selected host. enabled Boolean flag specifying whether the host cache is enabled. datastore Name of the datastore that contains th...
[ "def", "configure_host_cache", "(", "enabled", ",", "datastore", "=", "None", ",", "swap_size_MiB", "=", "None", ",", "service_instance", "=", "None", ")", ":", "log", ".", "debug", "(", "'Validating host cache input'", ")", "schema", "=", "SimpleHostCacheSchema",...
Configures the host cache on the selected host. enabled Boolean flag specifying whether the host cache is enabled. datastore Name of the datastore that contains the host cache. Must be set if enabled is ``true``. swap_size_MiB Swap size in Mibibytes. Needs to be set if ena...
[ "Configures", "the", "host", "cache", "on", "the", "selected", "host", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6451-L6502
train
Configure the host cache on the selected host.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_check_hosts
def _check_hosts(service_instance, host, host_names): ''' Helper function that checks to see if the host provided is a vCenter Server or an ESXi host. If it's an ESXi host, returns a list of a single host_name. If a host reference isn't found, we're trying to find a host object for a vCenter server...
python
def _check_hosts(service_instance, host, host_names): ''' Helper function that checks to see if the host provided is a vCenter Server or an ESXi host. If it's an ESXi host, returns a list of a single host_name. If a host reference isn't found, we're trying to find a host object for a vCenter server...
[ "def", "_check_hosts", "(", "service_instance", ",", "host", ",", "host_names", ")", ":", "if", "not", "host_names", ":", "host_name", "=", "_get_host_ref", "(", "service_instance", ",", "host", ")", "if", "host_name", ":", "host_names", "=", "[", "host", "]...
Helper function that checks to see if the host provided is a vCenter Server or an ESXi host. If it's an ESXi host, returns a list of a single host_name. If a host reference isn't found, we're trying to find a host object for a vCenter server. Raises a CommandExecutionError in this case, as we need host ref...
[ "Helper", "function", "that", "checks", "to", "see", "if", "the", "host", "provided", "is", "a", "vCenter", "Server", "or", "an", "ESXi", "host", ".", "If", "it", "s", "an", "ESXi", "host", "returns", "a", "list", "of", "a", "single", "host_name", "." ...
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6505-L6525
train
Helper function that checks to see if the host provided is a vCenter Server or ESXi host and returns a list of a single host_name.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_format_coredump_stdout
def _format_coredump_stdout(cmd_ret): ''' Helper function to format the stdout from the get_coredump_network_config function. cmd_ret The return dictionary that comes from a cmd.run_all call. ''' ret_dict = {} for line in cmd_ret['stdout'].splitlines(): line = line.strip().lower...
python
def _format_coredump_stdout(cmd_ret): ''' Helper function to format the stdout from the get_coredump_network_config function. cmd_ret The return dictionary that comes from a cmd.run_all call. ''' ret_dict = {} for line in cmd_ret['stdout'].splitlines(): line = line.strip().lower...
[ "def", "_format_coredump_stdout", "(", "cmd_ret", ")", ":", "ret_dict", "=", "{", "}", "for", "line", "in", "cmd_ret", "[", "'stdout'", "]", ".", "splitlines", "(", ")", ":", "line", "=", "line", ".", "strip", "(", ")", ".", "lower", "(", ")", "if", ...
Helper function to format the stdout from the get_coredump_network_config function. cmd_ret The return dictionary that comes from a cmd.run_all call.
[ "Helper", "function", "to", "format", "the", "stdout", "from", "the", "get_coredump_network_config", "function", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6528-L6555
train
Helper function to format the stdout from the get_coredump_network_config function.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_format_firewall_stdout
def _format_firewall_stdout(cmd_ret): ''' Helper function to format the stdout from the get_firewall_status function. cmd_ret The return dictionary that comes from a cmd.run_all call. ''' ret_dict = {'success': True, 'rulesets': {}} for line in cmd_ret['stdout'].splitlin...
python
def _format_firewall_stdout(cmd_ret): ''' Helper function to format the stdout from the get_firewall_status function. cmd_ret The return dictionary that comes from a cmd.run_all call. ''' ret_dict = {'success': True, 'rulesets': {}} for line in cmd_ret['stdout'].splitlin...
[ "def", "_format_firewall_stdout", "(", "cmd_ret", ")", ":", "ret_dict", "=", "{", "'success'", ":", "True", ",", "'rulesets'", ":", "{", "}", "}", "for", "line", "in", "cmd_ret", "[", "'stdout'", "]", ".", "splitlines", "(", ")", ":", "if", "line", "."...
Helper function to format the stdout from the get_firewall_status function. cmd_ret The return dictionary that comes from a cmd.run_all call.
[ "Helper", "function", "to", "format", "the", "stdout", "from", "the", "get_firewall_status", "function", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6558-L6575
train
Helper function to format the stdout from the get_firewall_status function.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_format_syslog_config
def _format_syslog_config(cmd_ret): ''' Helper function to format the stdout from the get_syslog_config function. cmd_ret The return dictionary that comes from a cmd.run_all call. ''' ret_dict = {'success': cmd_ret['retcode'] == 0} if cmd_ret['retcode'] != 0: ret_dict['message'...
python
def _format_syslog_config(cmd_ret): ''' Helper function to format the stdout from the get_syslog_config function. cmd_ret The return dictionary that comes from a cmd.run_all call. ''' ret_dict = {'success': cmd_ret['retcode'] == 0} if cmd_ret['retcode'] != 0: ret_dict['message'...
[ "def", "_format_syslog_config", "(", "cmd_ret", ")", ":", "ret_dict", "=", "{", "'success'", ":", "cmd_ret", "[", "'retcode'", "]", "==", "0", "}", "if", "cmd_ret", "[", "'retcode'", "]", "!=", "0", ":", "ret_dict", "[", "'message'", "]", "=", "cmd_ret",...
Helper function to format the stdout from the get_syslog_config function. cmd_ret The return dictionary that comes from a cmd.run_all call.
[ "Helper", "function", "to", "format", "the", "stdout", "from", "the", "get_syslog_config", "function", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6578-L6597
train
Helper function to format the stdout from the get_syslog_config function.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_host_ref
def _get_host_ref(service_instance, host, host_name=None): ''' Helper function that returns a host object either from the host location or the host_name. If host_name is provided, that is the host_object that will be returned. The function will first search for hosts by DNS Name. If no hosts are found,...
python
def _get_host_ref(service_instance, host, host_name=None): ''' Helper function that returns a host object either from the host location or the host_name. If host_name is provided, that is the host_object that will be returned. The function will first search for hosts by DNS Name. If no hosts are found,...
[ "def", "_get_host_ref", "(", "service_instance", ",", "host", ",", "host_name", "=", "None", ")", ":", "search_index", "=", "salt", ".", "utils", ".", "vmware", ".", "get_inventory", "(", "service_instance", ")", ".", "searchIndex", "# First, try to find the host ...
Helper function that returns a host object either from the host location or the host_name. If host_name is provided, that is the host_object that will be returned. The function will first search for hosts by DNS Name. If no hosts are found, it will try searching by IP Address.
[ "Helper", "function", "that", "returns", "a", "host", "object", "either", "from", "the", "host", "location", "or", "the", "host_name", ".", "If", "host_name", "is", "provided", "that", "is", "the", "host_object", "that", "will", "be", "returned", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6607-L6627
train
Helper function that returns a host object either from the host location or the host_name.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_host_disks
def _get_host_disks(host_reference): ''' Helper function that returns a dictionary containing a list of SSD and Non-SSD disks. ''' storage_system = host_reference.configManager.storageSystem disks = storage_system.storageDeviceInfo.scsiLun ssds = [] non_ssds = [] for disk in disks: ...
python
def _get_host_disks(host_reference): ''' Helper function that returns a dictionary containing a list of SSD and Non-SSD disks. ''' storage_system = host_reference.configManager.storageSystem disks = storage_system.storageDeviceInfo.scsiLun ssds = [] non_ssds = [] for disk in disks: ...
[ "def", "_get_host_disks", "(", "host_reference", ")", ":", "storage_system", "=", "host_reference", ".", "configManager", ".", "storageSystem", "disks", "=", "storage_system", ".", "storageDeviceInfo", ".", "scsiLun", "ssds", "=", "[", "]", "non_ssds", "=", "[", ...
Helper function that returns a dictionary containing a list of SSD and Non-SSD disks.
[ "Helper", "function", "that", "returns", "a", "dictionary", "containing", "a", "list", "of", "SSD", "and", "Non", "-", "SSD", "disks", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6644-L6663
train
Helper function that returns a list of SSD and Non - SSD disks.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_vsan_eligible_disks
def _get_vsan_eligible_disks(service_instance, host, host_names): ''' Helper function that returns a dictionary of host_name keys with either a list of eligible disks that can be added to VSAN or either an 'Error' message or a message saying no eligible disks were found. Possible keys/values look like: ...
python
def _get_vsan_eligible_disks(service_instance, host, host_names): ''' Helper function that returns a dictionary of host_name keys with either a list of eligible disks that can be added to VSAN or either an 'Error' message or a message saying no eligible disks were found. Possible keys/values look like: ...
[ "def", "_get_vsan_eligible_disks", "(", "service_instance", ",", "host", ",", "host_names", ")", ":", "ret", "=", "{", "}", "for", "host_name", "in", "host_names", ":", "# Get VSAN System Config Manager, if available.", "host_ref", "=", "_get_host_ref", "(", "service_...
Helper function that returns a dictionary of host_name keys with either a list of eligible disks that can be added to VSAN or either an 'Error' message or a message saying no eligible disks were found. Possible keys/values look like: return = {'host_1': {'Error': 'VSAN System Config Manager is unset ...'},...
[ "Helper", "function", "that", "returns", "a", "dictionary", "of", "host_name", "keys", "with", "either", "a", "list", "of", "eligible", "disks", "that", "can", "be", "added", "to", "VSAN", "or", "either", "an", "Error", "message", "or", "a", "message", "sa...
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6673-L6725
train
Helper function that returns a dictionary of host_name keys with either a list of VSAN eligible disks that can be added to VSAN or an error message saying no availabe disks were found.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_reset_syslog_config_params
def _reset_syslog_config_params(host, username, password, cmd, resets, valid_resets, protocol=None, port=None, esxi_host=None, credstore=None): ''' Helper function for reset_syslog_config that resets the config and populates the return dictionary. ''' ret_dict = {} al...
python
def _reset_syslog_config_params(host, username, password, cmd, resets, valid_resets, protocol=None, port=None, esxi_host=None, credstore=None): ''' Helper function for reset_syslog_config that resets the config and populates the return dictionary. ''' ret_dict = {} al...
[ "def", "_reset_syslog_config_params", "(", "host", ",", "username", ",", "password", ",", "cmd", ",", "resets", ",", "valid_resets", ",", "protocol", "=", "None", ",", "port", "=", "None", ",", "esxi_host", "=", "None", ",", "credstore", "=", "None", ")", ...
Helper function for reset_syslog_config that resets the config and populates the return dictionary.
[ "Helper", "function", "for", "reset_syslog_config", "that", "resets", "the", "config", "and", "populates", "the", "return", "dictionary", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6728-L6758
train
Helper function for reset_syslog_config that resets the config and populates the return dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_set_syslog_config_helper
def _set_syslog_config_helper(host, username, password, syslog_config, config_value, protocol=None, port=None, reset_service=None, esxi_host=None, credstore=None): ''' Helper function for set_syslog_config that sets the config and populates the return dictionary. ''' cmd = ...
python
def _set_syslog_config_helper(host, username, password, syslog_config, config_value, protocol=None, port=None, reset_service=None, esxi_host=None, credstore=None): ''' Helper function for set_syslog_config that sets the config and populates the return dictionary. ''' cmd = ...
[ "def", "_set_syslog_config_helper", "(", "host", ",", "username", ",", "password", ",", "syslog_config", ",", "config_value", ",", "protocol", "=", "None", ",", "port", "=", "None", ",", "reset_service", "=", "None", ",", "esxi_host", "=", "None", ",", "cred...
Helper function for set_syslog_config that sets the config and populates the return dictionary.
[ "Helper", "function", "for", "set_syslog_config", "that", "sets", "the", "config", "and", "populates", "the", "return", "dictionary", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6761-L6799
train
Helper function for set_syslog_config that sets the config and populates the return dictionary.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
add_host_to_dvs
def add_host_to_dvs(host, username, password, vmknic_name, vmnic_name, dvs_name, target_portgroup_name, uplink_portgroup_name, protocol=None, port=None, host_names=None): ''' Adds an ESXi host to a vSphere Distributed Virtual Switch and migrates the desired adapters t...
python
def add_host_to_dvs(host, username, password, vmknic_name, vmnic_name, dvs_name, target_portgroup_name, uplink_portgroup_name, protocol=None, port=None, host_names=None): ''' Adds an ESXi host to a vSphere Distributed Virtual Switch and migrates the desired adapters t...
[ "def", "add_host_to_dvs", "(", "host", ",", "username", ",", "password", ",", "vmknic_name", ",", "vmnic_name", ",", "dvs_name", ",", "target_portgroup_name", ",", "uplink_portgroup_name", ",", "protocol", "=", "None", ",", "port", "=", "None", ",", "host_names"...
Adds an ESXi host to a vSphere Distributed Virtual Switch and migrates the desired adapters to the DVS from the standard switch. host The location of the vCenter server. username The username used to login to the vCenter server. password The password used to login to the vCent...
[ "Adds", "an", "ESXi", "host", "to", "a", "vSphere", "Distributed", "Virtual", "Switch", "and", "migrates", "the", "desired", "adapters", "to", "the", "DVS", "from", "the", "standard", "switch", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L6804-L7129
train
Adds an ESXi host to the Distributed Virtual Switch and migrates it to the standard switch.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_proxy_target
def _get_proxy_target(service_instance): ''' Returns the target object of a proxy. If the object doesn't exist a VMwareObjectRetrievalError is raised service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. ''' proxy_type = get_proxy_type() if not salt.util...
python
def _get_proxy_target(service_instance): ''' Returns the target object of a proxy. If the object doesn't exist a VMwareObjectRetrievalError is raised service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host. ''' proxy_type = get_proxy_type() if not salt.util...
[ "def", "_get_proxy_target", "(", "service_instance", ")", ":", "proxy_type", "=", "get_proxy_type", "(", ")", "if", "not", "salt", ".", "utils", ".", "vmware", ".", "is_connection_to_a_vcenter", "(", "service_instance", ")", ":", "raise", "CommandExecutionError", ...
Returns the target object of a proxy. If the object doesn't exist a VMwareObjectRetrievalError is raised service_instance Service instance (vim.ServiceInstance) of the vCenter/ESXi host.
[ "Returns", "the", "target", "object", "of", "a", "proxy", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7134-L7177
train
Returns the target object of a proxy.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_esxdatacenter_proxy_details
def _get_esxdatacenter_proxy_details(): ''' Returns the running esxdatacenter's proxy details ''' det = __salt__['esxdatacenter.get_details']() return det.get('vcenter'), det.get('username'), det.get('password'), \ det.get('protocol'), det.get('port'), det.get('mechanism'), \ ...
python
def _get_esxdatacenter_proxy_details(): ''' Returns the running esxdatacenter's proxy details ''' det = __salt__['esxdatacenter.get_details']() return det.get('vcenter'), det.get('username'), det.get('password'), \ det.get('protocol'), det.get('port'), det.get('mechanism'), \ ...
[ "def", "_get_esxdatacenter_proxy_details", "(", ")", ":", "det", "=", "__salt__", "[", "'esxdatacenter.get_details'", "]", "(", ")", "return", "det", ".", "get", "(", "'vcenter'", ")", ",", "det", ".", "get", "(", "'username'", ")", ",", "det", ".", "get",...
Returns the running esxdatacenter's proxy details
[ "Returns", "the", "running", "esxdatacenter", "s", "proxy", "details" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7180-L7187
train
Returns the running esxdatacenter s proxy details
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_esxcluster_proxy_details
def _get_esxcluster_proxy_details(): ''' Returns the running esxcluster's proxy details ''' det = __salt__['esxcluster.get_details']() return det.get('vcenter'), det.get('username'), det.get('password'), \ det.get('protocol'), det.get('port'), det.get('mechanism'), \ det.get(...
python
def _get_esxcluster_proxy_details(): ''' Returns the running esxcluster's proxy details ''' det = __salt__['esxcluster.get_details']() return det.get('vcenter'), det.get('username'), det.get('password'), \ det.get('protocol'), det.get('port'), det.get('mechanism'), \ det.get(...
[ "def", "_get_esxcluster_proxy_details", "(", ")", ":", "det", "=", "__salt__", "[", "'esxcluster.get_details'", "]", "(", ")", "return", "det", ".", "get", "(", "'vcenter'", ")", ",", "det", ".", "get", "(", "'username'", ")", ",", "det", ".", "get", "("...
Returns the running esxcluster's proxy details
[ "Returns", "the", "running", "esxcluster", "s", "proxy", "details" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7190-L7198
train
Returns the running esxcluster s proxy details
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_esxi_proxy_details
def _get_esxi_proxy_details(): ''' Returns the running esxi's proxy details ''' det = __proxy__['esxi.get_details']() host = det.get('host') if det.get('vcenter'): host = det['vcenter'] esxi_hosts = None if det.get('esxi_host'): esxi_hosts = [det['esxi_host']] return ...
python
def _get_esxi_proxy_details(): ''' Returns the running esxi's proxy details ''' det = __proxy__['esxi.get_details']() host = det.get('host') if det.get('vcenter'): host = det['vcenter'] esxi_hosts = None if det.get('esxi_host'): esxi_hosts = [det['esxi_host']] return ...
[ "def", "_get_esxi_proxy_details", "(", ")", ":", "det", "=", "__proxy__", "[", "'esxi.get_details'", "]", "(", ")", "host", "=", "det", ".", "get", "(", "'host'", ")", "if", "det", ".", "get", "(", "'vcenter'", ")", ":", "host", "=", "det", "[", "'vc...
Returns the running esxi's proxy details
[ "Returns", "the", "running", "esxi", "s", "proxy", "details" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7201-L7214
train
Returns the running esxi s proxy details
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
get_vm
def get_vm(name, datacenter=None, vm_properties=None, traversal_spec=None, parent_ref=None, service_instance=None): ''' Returns vm object properties. name Name of the virtual machine. datacenter Datacenter name vm_properties List of vm properties. traversal...
python
def get_vm(name, datacenter=None, vm_properties=None, traversal_spec=None, parent_ref=None, service_instance=None): ''' Returns vm object properties. name Name of the virtual machine. datacenter Datacenter name vm_properties List of vm properties. traversal...
[ "def", "get_vm", "(", "name", ",", "datacenter", "=", "None", ",", "vm_properties", "=", "None", ",", "traversal_spec", "=", "None", ",", "parent_ref", "=", "None", ",", "service_instance", "=", "None", ")", ":", "virtual_machine", "=", "salt", ".", "utils...
Returns vm object properties. name Name of the virtual machine. datacenter Datacenter name vm_properties List of vm properties. traversal_spec Traversal Spec object(s) for searching. parent_ref Container Reference object for searching under a given object...
[ "Returns", "vm", "object", "properties", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7219-L7250
train
Get a virtual machine object by name datacenter and properties.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
get_vm_config_file
def get_vm_config_file(name, datacenter, placement, datastore, service_instance=None): ''' Queries the virtual machine config file and returns vim.host.DatastoreBrowser.SearchResults object on success None on failure name Name of the virtual machine datacenter ...
python
def get_vm_config_file(name, datacenter, placement, datastore, service_instance=None): ''' Queries the virtual machine config file and returns vim.host.DatastoreBrowser.SearchResults object on success None on failure name Name of the virtual machine datacenter ...
[ "def", "get_vm_config_file", "(", "name", ",", "datacenter", ",", "placement", ",", "datastore", ",", "service_instance", "=", "None", ")", ":", "browser_spec", "=", "vim", ".", "host", ".", "DatastoreBrowser", ".", "SearchSpec", "(", ")", "directory", "=", ...
Queries the virtual machine config file and returns vim.host.DatastoreBrowser.SearchResults object on success None on failure name Name of the virtual machine datacenter Datacenter name datastore Datastore where the virtual machine files are stored service_instance ...
[ "Queries", "the", "virtual", "machine", "config", "file", "and", "returns", "vim", ".", "host", ".", "DatastoreBrowser", ".", "SearchResults", "object", "on", "success", "None", "on", "failure" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7255-L7307
train
Queries the virtual machine config file and returns the file object on success None on failure
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_hardware_version
def _apply_hardware_version(hardware_version, config_spec, operation='add'): ''' Specifies vm container version or schedules upgrade, returns True on change and False if nothing have been changed. hardware_version Hardware version string eg. vmx-08 config_spec Configuration spec ob...
python
def _apply_hardware_version(hardware_version, config_spec, operation='add'): ''' Specifies vm container version or schedules upgrade, returns True on change and False if nothing have been changed. hardware_version Hardware version string eg. vmx-08 config_spec Configuration spec ob...
[ "def", "_apply_hardware_version", "(", "hardware_version", ",", "config_spec", ",", "operation", "=", "'add'", ")", ":", "log", ".", "trace", "(", "'Configuring virtual machine hardware '", "'version version=%s'", ",", "hardware_version", ")", "if", "operation", "==", ...
Specifies vm container version or schedules upgrade, returns True on change and False if nothing have been changed. hardware_version Hardware version string eg. vmx-08 config_spec Configuration spec object operation Defines the operation which should be used, the possi...
[ "Specifies", "vm", "container", "version", "or", "schedules", "upgrade", "returns", "True", "on", "change", "and", "False", "if", "nothing", "have", "been", "changed", "." ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7310-L7335
train
Applies the hardware version to the virtual machine.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_cpu_config
def _apply_cpu_config(config_spec, cpu_props): ''' Sets CPU core count to the given value config_spec vm.ConfigSpec object cpu_props CPU properties dict ''' log.trace('Configuring virtual machine CPU ' 'settings cpu_props=%s', cpu_props) if 'count' in cpu_prop...
python
def _apply_cpu_config(config_spec, cpu_props): ''' Sets CPU core count to the given value config_spec vm.ConfigSpec object cpu_props CPU properties dict ''' log.trace('Configuring virtual machine CPU ' 'settings cpu_props=%s', cpu_props) if 'count' in cpu_prop...
[ "def", "_apply_cpu_config", "(", "config_spec", ",", "cpu_props", ")", ":", "log", ".", "trace", "(", "'Configuring virtual machine CPU '", "'settings cpu_props=%s'", ",", "cpu_props", ")", "if", "'count'", "in", "cpu_props", ":", "config_spec", ".", "numCPUs", "=",...
Sets CPU core count to the given value config_spec vm.ConfigSpec object cpu_props CPU properties dict
[ "Sets", "CPU", "core", "count", "to", "the", "given", "value" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7338-L7359
train
Applies the given CPU properties to the given VM config spec.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_memory_config
def _apply_memory_config(config_spec, memory): ''' Sets memory size to the given value config_spec vm.ConfigSpec object memory Memory size and unit ''' log.trace('Configuring virtual machine memory ' 'settings memory=%s', memory) if 'size' in memory and 'unit'...
python
def _apply_memory_config(config_spec, memory): ''' Sets memory size to the given value config_spec vm.ConfigSpec object memory Memory size and unit ''' log.trace('Configuring virtual machine memory ' 'settings memory=%s', memory) if 'size' in memory and 'unit'...
[ "def", "_apply_memory_config", "(", "config_spec", ",", "memory", ")", ":", "log", ".", "trace", "(", "'Configuring virtual machine memory '", "'settings memory=%s'", ",", "memory", ")", "if", "'size'", "in", "memory", "and", "'unit'", "in", "memory", ":", "try", ...
Sets memory size to the given value config_spec vm.ConfigSpec object memory Memory size and unit
[ "Sets", "memory", "size", "to", "the", "given", "value" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7362-L7388
train
Applies the given memory settings to the given config spec.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
get_advanced_configs
def get_advanced_configs(vm_name, datacenter, service_instance=None): ''' Returns extra config parameters from a virtual machine advanced config list vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available service_instance vCenter ser...
python
def get_advanced_configs(vm_name, datacenter, service_instance=None): ''' Returns extra config parameters from a virtual machine advanced config list vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available service_instance vCenter ser...
[ "def", "get_advanced_configs", "(", "vm_name", ",", "datacenter", ",", "service_instance", "=", "None", ")", ":", "current_config", "=", "get_vm_config", "(", "vm_name", ",", "datacenter", "=", "datacenter", ",", "objects", "=", "True", ",", "service_instance", ...
Returns extra config parameters from a virtual machine advanced config list vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available service_instance vCenter service instance for connection and configuration
[ "Returns", "extra", "config", "parameters", "from", "a", "virtual", "machine", "advanced", "config", "list" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7394-L7411
train
Returns extra config parameters from a virtual machine advanced config list
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_advanced_config
def _apply_advanced_config(config_spec, advanced_config, vm_extra_config=None): ''' Sets configuration parameters for the vm config_spec vm.ConfigSpec object advanced_config config key value pairs vm_extra_config Virtual machine vm_ref.config.extraConfig object ''' ...
python
def _apply_advanced_config(config_spec, advanced_config, vm_extra_config=None): ''' Sets configuration parameters for the vm config_spec vm.ConfigSpec object advanced_config config key value pairs vm_extra_config Virtual machine vm_ref.config.extraConfig object ''' ...
[ "def", "_apply_advanced_config", "(", "config_spec", ",", "advanced_config", ",", "vm_extra_config", "=", "None", ")", ":", "log", ".", "trace", "(", "'Configuring advanced configuration '", "'parameters %s'", ",", "advanced_config", ")", "if", "isinstance", "(", "adv...
Sets configuration parameters for the vm config_spec vm.ConfigSpec object advanced_config config key value pairs vm_extra_config Virtual machine vm_ref.config.extraConfig object
[ "Sets", "configuration", "parameters", "for", "the", "vm" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7414-L7440
train
Applies the given advanced_config to the given config_spec.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
set_advanced_configs
def set_advanced_configs(vm_name, datacenter, advanced_configs, service_instance=None): ''' Appends extra config parameters to a virtual machine advanced config list vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available ...
python
def set_advanced_configs(vm_name, datacenter, advanced_configs, service_instance=None): ''' Appends extra config parameters to a virtual machine advanced config list vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available ...
[ "def", "set_advanced_configs", "(", "vm_name", ",", "datacenter", ",", "advanced_configs", ",", "service_instance", "=", "None", ")", ":", "current_config", "=", "get_vm_config", "(", "vm_name", ",", "datacenter", "=", "datacenter", ",", "objects", "=", "True", ...
Appends extra config parameters to a virtual machine advanced config list vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available advanced_configs Dictionary with advanced parameter key value pairs service_instance vCenter servic...
[ "Appends", "extra", "config", "parameters", "to", "a", "virtual", "machine", "advanced", "config", "list" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7446-L7483
train
Sets the advanced config parameters for a virtual machine
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_delete_advanced_config
def _delete_advanced_config(config_spec, advanced_config, vm_extra_config): ''' Removes configuration parameters for the vm config_spec vm.ConfigSpec object advanced_config List of advanced config keys to be deleted vm_extra_config Virtual machine vm_ref.config.extraConfig...
python
def _delete_advanced_config(config_spec, advanced_config, vm_extra_config): ''' Removes configuration parameters for the vm config_spec vm.ConfigSpec object advanced_config List of advanced config keys to be deleted vm_extra_config Virtual machine vm_ref.config.extraConfig...
[ "def", "_delete_advanced_config", "(", "config_spec", ",", "advanced_config", ",", "vm_extra_config", ")", ":", "log", ".", "trace", "(", "'Removing advanced configuration '", "'parameters %s'", ",", "advanced_config", ")", "if", "isinstance", "(", "advanced_config", ",...
Removes configuration parameters for the vm config_spec vm.ConfigSpec object advanced_config List of advanced config keys to be deleted vm_extra_config Virtual machine vm_ref.config.extraConfig object
[ "Removes", "configuration", "parameters", "for", "the", "vm" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7486-L7512
train
Removes the advanced config parameters for the virtual machine.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
delete_advanced_configs
def delete_advanced_configs(vm_name, datacenter, advanced_configs, service_instance=None): ''' Removes extra config parameters from a virtual machine vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available advanced...
python
def delete_advanced_configs(vm_name, datacenter, advanced_configs, service_instance=None): ''' Removes extra config parameters from a virtual machine vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available advanced...
[ "def", "delete_advanced_configs", "(", "vm_name", ",", "datacenter", ",", "advanced_configs", ",", "service_instance", "=", "None", ")", ":", "datacenter_ref", "=", "salt", ".", "utils", ".", "vmware", ".", "get_datacenter", "(", "service_instance", ",", "datacent...
Removes extra config parameters from a virtual machine vm_name Virtual machine name datacenter Datacenter name where the virtual machine is available advanced_configs List of advanced config values to be removed service_instance vCenter service instance for connection...
[ "Removes", "extra", "config", "parameters", "from", "a", "virtual", "machine" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7518-L7547
train
Delete extra config parameters from a virtual machine
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_get_scsi_controller_key
def _get_scsi_controller_key(bus_number, scsi_ctrls): ''' Returns key number of the SCSI controller keys bus_number Controller bus number from the adapter scsi_ctrls List of SCSI Controller objects (old+newly created) ''' # list of new/old VirtualSCSIController objects, both ne...
python
def _get_scsi_controller_key(bus_number, scsi_ctrls): ''' Returns key number of the SCSI controller keys bus_number Controller bus number from the adapter scsi_ctrls List of SCSI Controller objects (old+newly created) ''' # list of new/old VirtualSCSIController objects, both ne...
[ "def", "_get_scsi_controller_key", "(", "bus_number", ",", "scsi_ctrls", ")", ":", "# list of new/old VirtualSCSIController objects, both new and old objects", "# should contain a key attribute key should be a negative integer in case", "# of a new object", "keys", "=", "[", "ctrl", "....
Returns key number of the SCSI controller keys bus_number Controller bus number from the adapter scsi_ctrls List of SCSI Controller objects (old+newly created)
[ "Returns", "key", "number", "of", "the", "SCSI", "controller", "keys" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7550-L7568
train
Returns the key number of the SCSI controller with the given bus number from the adapter and the list of SCSI Controller objects that are not yet created.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_hard_disk
def _apply_hard_disk(unit_number, key, operation, disk_label=None, size=None, unit='GB', controller_key=None, thin_provision=None, eagerly_scrub=None, datastore=None, filename=None): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a virtu...
python
def _apply_hard_disk(unit_number, key, operation, disk_label=None, size=None, unit='GB', controller_key=None, thin_provision=None, eagerly_scrub=None, datastore=None, filename=None): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a virtu...
[ "def", "_apply_hard_disk", "(", "unit_number", ",", "key", ",", "operation", ",", "disk_label", "=", "None", ",", "size", "=", "None", ",", "unit", "=", "'GB'", ",", "controller_key", "=", "None", ",", "thin_provision", "=", "None", ",", "eagerly_scrub", "...
Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a virtual disk device unit_number Add network adapter to this address key Device key number operation Action which should be done on the device add or edit disk_label Label of the new disk, ca...
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "object", "specifying", "to", "add", "/", "edit", "a", "virtual", "disk", "device" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7571-L7643
train
Returns a vim. vm. device. VirtualDiskSpec object specifying to add or edit a hard disk.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_adapter_type
def _create_adapter_type(network_adapter, adapter_type, network_adapter_label=''): ''' Returns a vim.vm.device.VirtualEthernetCard object specifying a virtual ethernet card information network_adapter None or VirtualEthernet object adapter_type String, type...
python
def _create_adapter_type(network_adapter, adapter_type, network_adapter_label=''): ''' Returns a vim.vm.device.VirtualEthernetCard object specifying a virtual ethernet card information network_adapter None or VirtualEthernet object adapter_type String, type...
[ "def", "_create_adapter_type", "(", "network_adapter", ",", "adapter_type", ",", "network_adapter_label", "=", "''", ")", ":", "log", ".", "trace", "(", "'Configuring virtual machine network '", "'adapter adapter_type=%s'", ",", "adapter_type", ")", "if", "adapter_type", ...
Returns a vim.vm.device.VirtualEthernetCard object specifying a virtual ethernet card information network_adapter None or VirtualEthernet object adapter_type String, type of adapter network_adapter_label string, network adapter name
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualEthernetCard", "object", "specifying", "a", "virtual", "ethernet", "card", "information" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7646-L7690
train
Create a virtual machine network adapter object based on the type of adapter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_network_backing
def _create_network_backing(network_name, switch_type, parent_ref): ''' Returns a vim.vm.device.VirtualDevice.BackingInfo object specifying a virtual ethernet card backing information network_name string, network name switch_type string, type of switch parent_ref Paren...
python
def _create_network_backing(network_name, switch_type, parent_ref): ''' Returns a vim.vm.device.VirtualDevice.BackingInfo object specifying a virtual ethernet card backing information network_name string, network name switch_type string, type of switch parent_ref Paren...
[ "def", "_create_network_backing", "(", "network_name", ",", "switch_type", ",", "parent_ref", ")", ":", "log", ".", "trace", "(", "'Configuring virtual machine network backing network_name=%s '", "'switch_type=%s parent=%s'", ",", "network_name", ",", "switch_type", ",", "s...
Returns a vim.vm.device.VirtualDevice.BackingInfo object specifying a virtual ethernet card backing information network_name string, network name switch_type string, type of switch parent_ref Parent reference to search for network
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDevice", ".", "BackingInfo", "object", "specifying", "a", "virtual", "ethernet", "card", "backing", "information" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7693-L7740
train
Creates a vim. vm. device. VirtualEthernetCard. BackingInfo object specifying a virtual machine network backing information.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_network_adapter_config
def _apply_network_adapter_config(key, network_name, adapter_type, switch_type, network_adapter_label=None, operation='add', connectable=None, mac=None, parent=None): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a...
python
def _apply_network_adapter_config(key, network_name, adapter_type, switch_type, network_adapter_label=None, operation='add', connectable=None, mac=None, parent=None): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a...
[ "def", "_apply_network_adapter_config", "(", "key", ",", "network_name", ",", "adapter_type", ",", "switch_type", ",", "network_adapter_label", "=", "None", ",", "operation", "=", "'add'", ",", "connectable", "=", "None", ",", "mac", "=", "None", ",", "parent", ...
Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a network device network_adapter_label Network adapter label key Unique key for device creation network_name Network or port group name adapter_type Type of the adapter eg. vmxnet3 switch...
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "object", "specifying", "to", "add", "/", "edit", "a", "network", "device" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7743-L7818
train
Returns a vim. vm. device. VirtualDeviceSpec object specifying to add or edit a network adapter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_scsi_controller
def _apply_scsi_controller(adapter, adapter_type, bus_sharing, key, bus_number, operation): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a SCSI controller adapter SCSI controller adapter name adapter_type SCSI controller ada...
python
def _apply_scsi_controller(adapter, adapter_type, bus_sharing, key, bus_number, operation): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a SCSI controller adapter SCSI controller adapter name adapter_type SCSI controller ada...
[ "def", "_apply_scsi_controller", "(", "adapter", ",", "adapter_type", ",", "bus_sharing", ",", "key", ",", "bus_number", ",", "operation", ")", ":", "log", ".", "trace", "(", "'Configuring scsi controller adapter=%s adapter_type=%s '", "'bus_sharing=%s key=%s bus_number=%s'...
Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a SCSI controller adapter SCSI controller adapter name adapter_type SCSI controller adapter type eg. paravirtual bus_sharing SCSI controller bus sharing eg. virtual_sharing key SCSI controlle...
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "object", "specifying", "to", "add", "/", "edit", "a", "SCSI", "controller" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7821-L7891
train
Returns a new vim. vm. device. VirtualDeviceSpec object specifying to add or edit a SCSI controller.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_ide_controllers
def _create_ide_controllers(ide_controllers): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing IDE controllers ide_controllers IDE properties ''' ide_ctrls = [] keys = range(-200, -250, -1) if ide_controllers: devs = [ide['adapter'] for ide in i...
python
def _create_ide_controllers(ide_controllers): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing IDE controllers ide_controllers IDE properties ''' ide_ctrls = [] keys = range(-200, -250, -1) if ide_controllers: devs = [ide['adapter'] for ide in i...
[ "def", "_create_ide_controllers", "(", "ide_controllers", ")", ":", "ide_ctrls", "=", "[", "]", "keys", "=", "range", "(", "-", "200", ",", "-", "250", ",", "-", "1", ")", "if", "ide_controllers", ":", "devs", "=", "[", "ide", "[", "'adapter'", "]", ...
Returns a list of vim.vm.device.VirtualDeviceSpec objects representing IDE controllers ide_controllers IDE properties
[ "Returns", "a", "list", "of", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "objects", "representing", "IDE", "controllers" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7894-L7910
train
Creates a list of vim. vm. device. VirtualDeviceSpec objects representing the IDE controllers and properties of the IDE controllers.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_ide_controller_config
def _apply_ide_controller_config(ide_controller_label, operation, key, bus_number=0): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit an IDE controller ide_controller_label Controller label of the IDE adapter operation Ty...
python
def _apply_ide_controller_config(ide_controller_label, operation, key, bus_number=0): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit an IDE controller ide_controller_label Controller label of the IDE adapter operation Ty...
[ "def", "_apply_ide_controller_config", "(", "ide_controller_label", ",", "operation", ",", "key", ",", "bus_number", "=", "0", ")", ":", "log", ".", "trace", "(", "'Configuring IDE controller ide_controller_label=%s'", ",", "ide_controller_label", ")", "ide_spec", "=", ...
Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit an IDE controller ide_controller_label Controller label of the IDE adapter operation Type of operation: add or edit key Unique key of the device bus_number Device bus number property
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "object", "specifying", "to", "add", "/", "edit", "an", "IDE", "controller" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7913-L7945
train
Returns a vim. vm. device. VirtualIDEController object specifying to add or edit an IDE controller
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_sata_controllers
def _create_sata_controllers(sata_controllers): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing SATA controllers sata_controllers SATA properties ''' sata_ctrls = [] keys = range(-15000, -15050, -1) if sata_controllers: devs = [sata['adapter'] ...
python
def _create_sata_controllers(sata_controllers): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing SATA controllers sata_controllers SATA properties ''' sata_ctrls = [] keys = range(-15000, -15050, -1) if sata_controllers: devs = [sata['adapter'] ...
[ "def", "_create_sata_controllers", "(", "sata_controllers", ")", ":", "sata_ctrls", "=", "[", "]", "keys", "=", "range", "(", "-", "15000", ",", "-", "15050", ",", "-", "1", ")", "if", "sata_controllers", ":", "devs", "=", "[", "sata", "[", "'adapter'", ...
Returns a list of vim.vm.device.VirtualDeviceSpec objects representing SATA controllers sata_controllers SATA properties
[ "Returns", "a", "list", "of", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "objects", "representing", "SATA", "controllers" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7948-L7964
train
Returns a list of vim. vm. device. VirtualDeviceSpec objects representing SATA controllers sata_controllers sata_properties
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_sata_controller_config
def _apply_sata_controller_config(sata_controller_label, operation, key, bus_number=0): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a SATA controller sata_controller_label Controller label of the SATA adapter operation ...
python
def _apply_sata_controller_config(sata_controller_label, operation, key, bus_number=0): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a SATA controller sata_controller_label Controller label of the SATA adapter operation ...
[ "def", "_apply_sata_controller_config", "(", "sata_controller_label", ",", "operation", ",", "key", ",", "bus_number", "=", "0", ")", ":", "log", ".", "trace", "(", "'Configuring SATA controller sata_controller_label=%s'", ",", "sata_controller_label", ")", "sata_spec", ...
Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a SATA controller sata_controller_label Controller label of the SATA adapter operation Type of operation: add or edit key Unique key of the device bus_number Device bus number property
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "object", "specifying", "to", "add", "/", "edit", "a", "SATA", "controller" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L7967-L8000
train
Returns a vim. vm. device. VirtualAHCIController object specifying to add or edit a
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_cd_drive
def _apply_cd_drive(drive_label, key, device_type, operation, client_device=None, datastore_iso_file=None, connectable=None, controller_key=200, parent_ref=None): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a CD/DVD drive drive_lab...
python
def _apply_cd_drive(drive_label, key, device_type, operation, client_device=None, datastore_iso_file=None, connectable=None, controller_key=200, parent_ref=None): ''' Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a CD/DVD drive drive_lab...
[ "def", "_apply_cd_drive", "(", "drive_label", ",", "key", ",", "device_type", ",", "operation", ",", "client_device", "=", "None", ",", "datastore_iso_file", "=", "None", ",", "connectable", "=", "None", ",", "controller_key", "=", "200", ",", "parent_ref", "=...
Returns a vim.vm.device.VirtualDeviceSpec object specifying to add/edit a CD/DVD drive drive_label Leble of the CD/DVD drive key Unique key of the device device_type Type of the device: client or iso operation Type of operation: add or edit client_device ...
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "object", "specifying", "to", "add", "/", "edit", "a", "CD", "/", "DVD", "drive" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8003-L8088
train
Applies the operation to the CD drive.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_set_network_adapter_mapping
def _set_network_adapter_mapping(domain, gateway, ip_addr, subnet_mask, mac): ''' Returns a vim.vm.customization.AdapterMapping object containing the IP properties of a network adapter card domain Domain of the host gateway Gateway address ip_addr IP address subne...
python
def _set_network_adapter_mapping(domain, gateway, ip_addr, subnet_mask, mac): ''' Returns a vim.vm.customization.AdapterMapping object containing the IP properties of a network adapter card domain Domain of the host gateway Gateway address ip_addr IP address subne...
[ "def", "_set_network_adapter_mapping", "(", "domain", ",", "gateway", ",", "ip_addr", ",", "subnet_mask", ",", "mac", ")", ":", "adapter_mapping", "=", "vim", ".", "vm", ".", "customization", ".", "AdapterMapping", "(", ")", "adapter_mapping", ".", "macAddress",...
Returns a vim.vm.customization.AdapterMapping object containing the IP properties of a network adapter card domain Domain of the host gateway Gateway address ip_addr IP address subnet_mask Subnet mask mac MAC address of the guest
[ "Returns", "a", "vim", ".", "vm", ".", "customization", ".", "AdapterMapping", "object", "containing", "the", "IP", "properties", "of", "a", "network", "adapter", "card" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8091-L8124
train
Returns a vim. vm. customization. AdapterMapping object containing the IP address and subnet mask of the network adapter.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_apply_serial_port
def _apply_serial_port(serial_device_spec, key, operation='add'): ''' Returns a vim.vm.device.VirtualSerialPort representing a serial port component serial_device_spec Serial device properties key Unique key of the device operation Add or edit the given device .. ...
python
def _apply_serial_port(serial_device_spec, key, operation='add'): ''' Returns a vim.vm.device.VirtualSerialPort representing a serial port component serial_device_spec Serial device properties key Unique key of the device operation Add or edit the given device .. ...
[ "def", "_apply_serial_port", "(", "serial_device_spec", ",", "key", ",", "operation", "=", "'add'", ")", ":", "log", ".", "trace", "(", "'Creating serial port adapter=%s type=%s connectable=%s yield=%s'", ",", "serial_device_spec", "[", "'adapter'", "]", ",", "serial_de...
Returns a vim.vm.device.VirtualSerialPort representing a serial port component serial_device_spec Serial device properties key Unique key of the device operation Add or edit the given device .. code-block:: bash serial_ports: adapter: 'Serial port 1' ...
[ "Returns", "a", "vim", ".", "vm", ".", "device", ".", "VirtualSerialPort", "representing", "a", "serial", "port", "component" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8127-L8194
train
Applies the given operation to the given serial port
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_disks
def _create_disks(service_instance, disks, scsi_controllers=None, parent=None): ''' Returns a list of disk specs representing the disks to be created for a virtual machine service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. disks List of...
python
def _create_disks(service_instance, disks, scsi_controllers=None, parent=None): ''' Returns a list of disk specs representing the disks to be created for a virtual machine service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. disks List of...
[ "def", "_create_disks", "(", "service_instance", ",", "disks", ",", "scsi_controllers", "=", "None", ",", "parent", "=", "None", ")", ":", "disk_specs", "=", "[", "]", "keys", "=", "range", "(", "-", "2000", ",", "-", "2050", ",", "-", "1", ")", "if"...
Returns a list of disk specs representing the disks to be created for a virtual machine service_instance Service instance (vim.ServiceInstance) of the vCenter. Default is None. disks List of disks with properties scsi_controllers List of SCSI controllers parent ...
[ "Returns", "a", "list", "of", "disk", "specs", "representing", "the", "disks", "to", "be", "created", "for", "a", "virtual", "machine" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8197-L8285
train
Create the disks for a virtual machine.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_scsi_devices
def _create_scsi_devices(scsi_devices): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing SCSI controllers scsi_devices: List of SCSI device properties ''' keys = range(-1000, -1050, -1) scsi_specs = [] if scsi_devices: devs = [scsi['adapter'] fo...
python
def _create_scsi_devices(scsi_devices): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing SCSI controllers scsi_devices: List of SCSI device properties ''' keys = range(-1000, -1050, -1) scsi_specs = [] if scsi_devices: devs = [scsi['adapter'] fo...
[ "def", "_create_scsi_devices", "(", "scsi_devices", ")", ":", "keys", "=", "range", "(", "-", "1000", ",", "-", "1050", ",", "-", "1", ")", "scsi_specs", "=", "[", "]", "if", "scsi_devices", ":", "devs", "=", "[", "scsi", "[", "'adapter'", "]", "for"...
Returns a list of vim.vm.device.VirtualDeviceSpec objects representing SCSI controllers scsi_devices: List of SCSI device properties
[ "Returns", "a", "list", "of", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "objects", "representing", "SCSI", "controllers" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8288-L8312
train
Create a list of vim. vm. device. VirtualDeviceSpec objects representing SCSI devices.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_network_adapters
def _create_network_adapters(network_interfaces, parent=None): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing the interfaces to be created for a virtual machine network_interfaces List of network interfaces and properties parent Parent object reference ...
python
def _create_network_adapters(network_interfaces, parent=None): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing the interfaces to be created for a virtual machine network_interfaces List of network interfaces and properties parent Parent object reference ...
[ "def", "_create_network_adapters", "(", "network_interfaces", ",", "parent", "=", "None", ")", ":", "network_specs", "=", "[", "]", "nics_settings", "=", "[", "]", "keys", "=", "range", "(", "-", "4000", ",", "-", "4050", ",", "-", "1", ")", "if", "net...
Returns a list of vim.vm.device.VirtualDeviceSpec objects representing the interfaces to be created for a virtual machine network_interfaces List of network interfaces and properties parent Parent object reference .. code-block: bash interfaces: adapter: 'Network ad...
[ "Returns", "a", "list", "of", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "objects", "representing", "the", "interfaces", "to", "be", "created", "for", "a", "virtual", "machine" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8315-L8359
train
Create a list of vim. vm. device. VirtualDeviceSpec objects representing the network adapters that are connected to the virtual machine.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...
saltstack/salt
salt/modules/vsphere.py
_create_serial_ports
def _create_serial_ports(serial_ports): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing the serial ports to be created for a virtual machine serial_ports Serial port properties ''' ports = [] keys = range(-9000, -9050, -1) if serial_ports: devs...
python
def _create_serial_ports(serial_ports): ''' Returns a list of vim.vm.device.VirtualDeviceSpec objects representing the serial ports to be created for a virtual machine serial_ports Serial port properties ''' ports = [] keys = range(-9000, -9050, -1) if serial_ports: devs...
[ "def", "_create_serial_ports", "(", "serial_ports", ")", ":", "ports", "=", "[", "]", "keys", "=", "range", "(", "-", "9000", ",", "-", "9050", ",", "-", "1", ")", "if", "serial_ports", ":", "devs", "=", "[", "serial", "[", "'adapter'", "]", "for", ...
Returns a list of vim.vm.device.VirtualDeviceSpec objects representing the serial ports to be created for a virtual machine serial_ports Serial port properties
[ "Returns", "a", "list", "of", "vim", ".", "vm", ".", "device", ".", "VirtualDeviceSpec", "objects", "representing", "the", "serial", "ports", "to", "be", "created", "for", "a", "virtual", "machine" ]
e8541fd6e744ab0df786c0f76102e41631f45d46
https://github.com/saltstack/salt/blob/e8541fd6e744ab0df786c0f76102e41631f45d46/salt/modules/vsphere.py#L8362-L8378
train
Returns a list of vim. vm. device. VirtualDeviceSpec objects representing the availabe serial ports for a virtual machine.
Pu7Z6IJCgH3a,vcEHXBQXuDuh,sHOWSIAKtU58,ZVWAAMjVVHHl,qRin5pdYOdbB,IySsVMyKT3tF,FwEHNICjJCy0,yISIa0MMKKfB,GAtvbI59wr0o,OmNM6rT0Sgul,gu1MSKhYvigU,S2TTo9DhhiSh,aaLV7ZjAfkcR,ker4pIJmdvxf,WaQEaQCVMQ03,xV97BFGi0hY9,YnM1HtHE4j7G,X5FyJb4ToTo6,jLmadlzMdunT,GGFwFLsDF9Fv,prtR0Uw1GMh5,oNamnshN4dFG,QZzQeAYvsoum,VHAt7CcYKC2T,cKsTbNGL...