diff options
author | watanabe.fumitaka <watanabe.fumitaka@nttcom.co.jp> | 2013-09-18 15:12:30 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-24 01:43:32 +0900 |
commit | 06e50ce7104f55ffe28a3320605402c69e5c16db (patch) | |
tree | a27888efaa3bd5640f69148e1fac97ea7954edbd /doc/source/conf.py | |
parent | 435d701861358368db8966f511463e79ee38bb31 (diff) |
rest_firewall: improve REST response
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 <watanabe.fumitaka@nttcom.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'doc/source/conf.py')
0 files changed, 0 insertions, 0 deletions