Open maltere opened 3 years ago
In case someone wonders:
Not setting the param uniqid
or setting it uniquely computed based on the IP is also not helping.
def uniqueid(ip):
length = 13
_hashable = f'salt-vip {ip}'
_hash = sha256(_hashable.encode('utf-8')).hexdigest()
return _hash[:length].lower()
new_vips = [
{
'mode': 'ipalias',
'interface': 'wan',
'uniqid': uniqueid(ip),
'descr': 'Added by DB Listen',
'type': 'single',
'subnet_bits': '32',
'subnet': ip
}
for ip in vips_raw
]
I try to update the Virtual IPs using the FauxAPI, but added IPs are not actually assigned to the interface.
I can add or remove the configuration of new Virtual IPs. The IPs are shown in the WebGUI and are also shown in the API call using
config_get
. However, these IPs are not added nor removed after an successful API call. If I update the Virtual IP in the Web GUI the IP is added to the Interface. (click the edit button and save without changes)I tried additionally:
What else can I try to add the Virtual IP via the FauxAPI?