On Wed, 18 Sep 2013 15:12:30 +0900
"watanabe.fumitaka" <[email protected]> wrote:
> Improvement of the REST response for basing more on JSON.
>
>
> example of get rules.
>
> before:
> {
> "switch_id: 0000000000000001": [
> {
> "vlan_id: 634": {
> "rule_id: 1": {
> "actions": "ALLOW",
> "dl_vlan": 634,
> "dl_type": "ARP",
> "priority": 1
> },
> "rule_id: 2": {
> "actions": "ALLOW",
> "dl_src": "12:34:56:78:9a:bc",
> "dl_vlan": 634,
> "nw_proto": "ICMP",
> "dl_type": "IPv4",
> "priority": 1
> }
> }
> }
> ]
> }
>
>
>
> after:
> [
> {
> "switch_id": "0000000000000001",
> "access_control_list": [
> {
> "vlan_id": 634,
> "rules": [
> {
> "actions": "ALLOW",
> "rule_id": 1,
> "dl_vlan": 634,
> "dl_type": "ARP",
> "priority": 1
> },
> {
> "dl_src": "12:34:56:78:9a:bc",
> "actions": "ALLOW",
> "rule_id": 2,
> "dl_vlan": 634,
> "nw_proto": "ICMP",
> "dl_type": "IPv4",
> "priority": 1
> }
> ]
> }
> ]
> }
> ]
>
>
>
>
>
>
> Signed-off-by: WATANABE Fumitaka <[email protected]>
> ---
> ryu/app/rest_firewall.py | 104
> +++++++++++++++++++++++---------------------
Applied. Changing a response format is not nice but the new one looks
better.
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel