Hi,
That problem does not occur in my environment.
$ curl -X POST -d '{"nw_src":"10.0.0.1/32",
"nw_dst":"10.0.0.2/32","nw_proto":"ICMP", "actions":"DENY",
"priority":"10"}' http://localhost:8080/firewall/rules/0000000000000001
[{"switch_id": "0000000000000001", "command_result": [{"result":
"success", "details": "Rule added. : rule_id=3"}]}]
> Invalid rule parameter.root@ade-VirtualBox:~#
Error message "Invalid rule parameter." was output.
From the above, i think that this problem is an error in the FlowMod
send part.
Have you changed the contents of ryu/lib/ofctl_v1_X.py?
Please install the latest version of Ryu and try again.
Regards, Muraoka
On 2017年01月05日 06:00, Adebayo Adedayo wrote:
> Hi All,
>
> Please I need help in using firewall because the setting up is working
> fine when I use the command without “actions” and “priority”, but it’s
> bringing invalid rule parameter when I use actions and priority. Please
> help in looking at these. Thank you
>
>
>
> root@ade-VirtualBox:~# curl -X PUT
> http://localhost:8080/firewall/module/enable/0000000000000001
>
> [{"switch_id": "0000000000000001", "command_result": {"result":
> "success", "details": "firewall running."}}]root@ade-VirtualBox:~#
>
> root@ade-VirtualBox:~# curl -X POST -d '{"nw_src":"10.0.0.1/32",
> "nw_dst":"10.0.0.2/32", "nw_proto":"ICMP"}'
> http://localhost:8080/firewall/rules/0000000000000001
>
> [{"switch_id": "0000000000000001", "command_result": [{"result":
> "success", "details": "Rule added. : rule_id=1"}]}]root@ade-VirtualBox:~#
>
> root@ade-VirtualBox:~# curl -X POST -d '{"nw_src":"10.0.0.2/32",
> "nw_dst":"10.0.0.1/32", "nw_proto":"ICMP"}'
> http://localhost:8080/firewall/rules/0000000000000001
>
> [{"switch_id": "0000000000000001", "command_result": [{"result":
> "success", "details": "Rule added. : rule_id=2"}]}]root@ade-VirtualBox:~#
>
> root@ade-VirtualBox:~# curl -X POST -d '{"nw_src":"10.0.0.1/32",
> "nw_dst":"10.0.0.2/32", "nw_proto":"ICMP", "actions":"DENY",
> "priority":"10"}' http://localhost:8080/firewall/rules/0000000000000001
>
> Invalid rule parameter.root@ade-VirtualBox:~#
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel