We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.3.0
v.3.5.2
Hi! (sorry for my bad english) I've got some proplems with plugin by API Fist of all i've created host "Webmin" by netbox web interface
Then i've created ACL "Webmin_ACL" by netbox API and attach them to host "Webmin" curl -X POST -H "Authorization: Token ********" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox.local/api/plugins/access-lists/access-lists/ --data '{"name": "Webmin_ACL", "display": "Webmin_ACL", "assigned_object_type": "virtualization.virtualmachine", "assigned_object_id": 1, "type": "extended" }'
ACL "Webmin_ACL" was created with id "access_list": 7
Then i've tried to create ACL Extended Rule by netbox API curl -X POST -H "Authorization: Token *******" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox.local/api/plugins/access-lists/extended-acl-rules/ --data '{"access_list": 7, "index": 1, "action": "permit", "destination_ports": [100]}'
But got error "destination_ports": [ "Action is set to remark, Destination Ports CANNOT be set." ]
Query whithout "destination_ports": [100] will create ACL Extended Rule normally curl -X POST -H "Authorization: Token ********" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox.local/api/plugins/access-lists/extended-acl-rules/ --data '{"access_list": 7, "index": 1, "action": "deny"}'
Please tell me what am i doing wrong?
ACL Extended Rule with "destination_ports" will created normally
"destination_ports": [ "Action is set to remark, Destination Ports CANNOT be set." ]
The text was updated successfully, but these errors were encountered:
Thanks for opening this Issue! We really appreciate the feedback & testing from users like you!
Sorry, something went wrong.
I've disabled "Remark" check at /opt/netbox/venv/lib/python3.10/site-packages/netbox_acls/api/serializers.py after that it works!
The bug is the one found here: #190 A colleague of mine created a pull request to fix this.
Closing as duplicate of #190 which has better documentation
No branches or pull requests
NetBox access-list plugin version
v1.3.0
NetBox version
v.3.5.2
Steps to Reproduce
Hi! (sorry for my bad english)
I've got some proplems with plugin by API
Fist of all i've created host "Webmin" by netbox web interface
Then i've created ACL "Webmin_ACL" by netbox API and attach them to host "Webmin"
curl -X POST -H "Authorization: Token ********" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox.local/api/plugins/access-lists/access-lists/ --data '{"name": "Webmin_ACL", "display": "Webmin_ACL", "assigned_object_type": "virtualization.virtualmachine", "assigned_object_id": 1, "type": "extended" }'
ACL "Webmin_ACL" was created with id "access_list": 7
Then i've tried to create ACL Extended Rule by netbox API
curl -X POST -H "Authorization: Token *******" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox.local/api/plugins/access-lists/extended-acl-rules/ --data '{"access_list": 7, "index": 1, "action": "permit", "destination_ports": [100]}'
But got error
"destination_ports": [
"Action is set to remark, Destination Ports CANNOT be set."
]
Query whithout "destination_ports": [100] will create ACL Extended Rule normally
curl -X POST -H "Authorization: Token ********" -H "Content-Type: application/json" -H "Accept: application/json; indent=4" https://netbox.local/api/plugins/access-lists/extended-acl-rules/ --data '{"access_list": 7, "index": 1, "action": "deny"}'
Please tell me what am i doing wrong?
Expected Behavior
ACL Extended Rule with "destination_ports" will created normally
Observed Behavior
"destination_ports": [
"Action is set to remark, Destination Ports CANNOT be set."
]
The text was updated successfully, but these errors were encountered: