-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
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)
api = PfsenseFauxapi(config.PFSENSE_IP,
config.FAUXAPI_KEY,
config.FAUXAPI_SECRET)
vips_raw = ['192.168.50.5'] # example ip
new_vips = [
{
'mode': 'ipalias',
'interface': 'wan',
'uniqid': '60be5980e1c0d',
'descr': '',
'type': 'single',
'subnet_bits': '32',
'subnet': ip
}
for ip in vips_raw
]
api.config_set({ 'vip': new_vips }, 'virtualip')I tried additionally:
api.config_reload()
api.send_event('interface reconfigure all')What else can I try to add the Virtual IP via the FauxAPI?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels