-
-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Because the API does not support empty value for gateway attribute in firewall rule endpoint, it cannot be unset back to "*" (Default)
To Reproduce
Steps to reproduce the behavior:
- Create Firewall Rule with assigned gateway
- Update the Firewall Rule with empty "gateway" field
- See BAD REQUEST error with Unknown firewall rule gateway
Expected behavior
Empty value should set the gateway to the Default - the same as in GUI
Screenshots or Response
{"status":"bad request","code":400,"return":4043,"message":"Unknown firewall rule gateway","data":[]}

pfSense Version & Package Version:
- pfSense Version: [e.g. pfSense 2.5.2]
- Package Version [e.g. v1.3.3]
Affected Endpoints:
- /api/v1/firewall/rule
Additional context
Maybe there is some hidden default value that I dont know or is not documented? :)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working