1
General Discussion / Re: OPNSense API - TrafficShaping: flushreload
« on: November 17, 2023, 01:42:23 am »
Ok, this has been resolved.
It seems that I was using the wrong ServiceController command. Rather than using the end point of flushreload, I should have been using reconfigure (as seen immediately under flushreload in the documentation https://docs.opnsense.org/development/api/core/trafficshaper.html).
Changing over to this made it work as expected.
One thing I did find out thanks to Ad Schellevis was that there is an end point noted in the web GUI for a button. In the case of the Traffic Shaper Apply button it was data-endpoint="/api/trafficshaper/service/reconfigure" - which as you can see would have pointed me in the right direction had I noticed it.
It seems that I was using the wrong ServiceController command. Rather than using the end point of flushreload, I should have been using reconfigure (as seen immediately under flushreload in the documentation https://docs.opnsense.org/development/api/core/trafficshaper.html).
Changing over to this made it work as expected.
One thing I did find out thanks to Ad Schellevis was that there is an end point noted in the web GUI for a button. In the case of the Traffic Shaper Apply button it was data-endpoint="/api/trafficshaper/service/reconfigure" - which as you can see would have pointed me in the right direction had I noticed it.