[SOLVED] Can the "Apply Configuration" be run programmatically?

phpengine

New Member
Apr 4, 2021
3
1
3
56
Hi there

I've installed ifupdown2, and I use the API to control the creation and deletion of VMs and Bridges.

I now need and API or CLI way to "Apply Configuration"

ifreload -a doesn't do it, unfortunately

Thanks in advance
 
You can check which API calls are used by investigating the network calls in your browsers develeoper tools.

The "Apply Configuration" button call the {node}->network API with PUT. It assumes that there is already a /etc/network/interfaces.new file present with the new configuration that should be applied.
 
Ah great - thanks for the tip about checking API calls from the browser. This works just great.

Thanks very much
 
  • Like
Reactions: aaron