rocker.json (6c5dfc9ccb643a0d50fdec9f10806b14960571d1) | rocker.json (a937b6aa739f65f2cae2ad9a7eb65a309ad2a359) |
---|---|
1# -*- Mode: Python -*- 2# vim: filetype=python 3 4## 5# = Rocker switch device 6## 7 8## --- 20 unchanged lines hidden (view full) --- 29# Returns: @Rocker information 30# 31# Since: 2.4 32# 33# Example: 34# 35# -> { "execute": "query-rocker", "arguments": { "name": "sw1" } } 36# <- { "return": {"name": "sw1", "ports": 2, "id": 1327446905938}} | 1# -*- Mode: Python -*- 2# vim: filetype=python 3 4## 5# = Rocker switch device 6## 7 8## --- 20 unchanged lines hidden (view full) --- 29# Returns: @Rocker information 30# 31# Since: 2.4 32# 33# Example: 34# 35# -> { "execute": "query-rocker", "arguments": { "name": "sw1" } } 36# <- { "return": {"name": "sw1", "ports": 2, "id": 1327446905938}} |
37# | |
38## 39{ 'command': 'query-rocker', 40 'data': { 'name': 'str' }, 41 'returns': 'RockerSwitch' } 42 43## 44# @RockerPortDuplex: 45# --- 56 unchanged lines hidden (view full) --- 102# Example: 103# 104# -> { "execute": "query-rocker-ports", "arguments": { "name": "sw1" } } 105# <- { "return": [ {"duplex": "full", "enabled": true, "name": "sw1.1", 106# "autoneg": "off", "link-up": true, "speed": 10000}, 107# {"duplex": "full", "enabled": true, "name": "sw1.2", 108# "autoneg": "off", "link-up": true, "speed": 10000} 109# ]} | 37## 38{ 'command': 'query-rocker', 39 'data': { 'name': 'str' }, 40 'returns': 'RockerSwitch' } 41 42## 43# @RockerPortDuplex: 44# --- 56 unchanged lines hidden (view full) --- 101# Example: 102# 103# -> { "execute": "query-rocker-ports", "arguments": { "name": "sw1" } } 104# <- { "return": [ {"duplex": "full", "enabled": true, "name": "sw1.1", 105# "autoneg": "off", "link-up": true, "speed": 10000}, 106# {"duplex": "full", "enabled": true, "name": "sw1.2", 107# "autoneg": "off", "link-up": true, "speed": 10000} 108# ]} |
110# | |
111## 112{ 'command': 'query-rocker-ports', 113 'data': { 'name': 'str' }, 114 'returns': ['RockerPort'] } 115 116## 117# @RockerOfDpaFlowKey: 118# --- 17 unchanged lines hidden (view full) --- 136# 137# @ip-proto: IP Header protocol field 138# 139# @ip-tos: IP header TOS field 140# 141# @ip-dst: IP header destination address 142# 143# Note: optional members may or may not appear in the flow key | 109## 110{ 'command': 'query-rocker-ports', 111 'data': { 'name': 'str' }, 112 'returns': ['RockerPort'] } 113 114## 115# @RockerOfDpaFlowKey: 116# --- 17 unchanged lines hidden (view full) --- 134# 135# @ip-proto: IP Header protocol field 136# 137# @ip-tos: IP header TOS field 138# 139# @ip-dst: IP header destination address 140# 141# Note: optional members may or may not appear in the flow key |
144# depending if they're relevant to the flow key. | 142# depending if they're relevant to the flow key. |
145# 146# Since: 2.4 147## 148{ 'struct': 'RockerOfDpaFlowKey', 149 'data' : { 'priority': 'uint32', 'tbl-id': 'uint32', '*in-pport': 'uint32', 150 '*tunnel-id': 'uint32', '*vlan-id': 'uint16', 151 '*eth-type': 'uint16', '*eth-src': 'str', '*eth-dst': 'str', 152 '*ip-proto': 'uint8', '*ip-tos': 'uint8', '*ip-dst': 'str' } } --- 13 unchanged lines hidden (view full) --- 166# 167# @eth-dst: Ethernet header destination MAC address 168# 169# @ip-proto: IP Header protocol field 170# 171# @ip-tos: IP header TOS field 172# 173# Note: optional members may or may not appear in the flow mask | 143# 144# Since: 2.4 145## 146{ 'struct': 'RockerOfDpaFlowKey', 147 'data' : { 'priority': 'uint32', 'tbl-id': 'uint32', '*in-pport': 'uint32', 148 '*tunnel-id': 'uint32', '*vlan-id': 'uint16', 149 '*eth-type': 'uint16', '*eth-src': 'str', '*eth-dst': 'str', 150 '*ip-proto': 'uint8', '*ip-tos': 'uint8', '*ip-dst': 'str' } } --- 13 unchanged lines hidden (view full) --- 164# 165# @eth-dst: Ethernet header destination MAC address 166# 167# @ip-proto: IP Header protocol field 168# 169# @ip-tos: IP header TOS field 170# 171# Note: optional members may or may not appear in the flow mask |
174# depending if they're relevant to the flow mask. | 172# depending if they're relevant to the flow mask. |
175# 176# Since: 2.4 177## 178{ 'struct': 'RockerOfDpaFlowMask', 179 'data' : { '*in-pport': 'uint32', '*tunnel-id': 'uint32', 180 '*vlan-id': 'uint16', '*eth-src': 'str', '*eth-dst': 'str', 181 '*ip-proto': 'uint8', '*ip-tos': 'uint8' } } 182 --- 10 unchanged lines hidden (view full) --- 193# 194# @vlan-id: VLAN ID 195# 196# @new-vlan-id: new VLAN ID 197# 198# @out-pport: physical output port 199# 200# Note: optional members may or may not appear in the flow action | 173# 174# Since: 2.4 175## 176{ 'struct': 'RockerOfDpaFlowMask', 177 'data' : { '*in-pport': 'uint32', '*tunnel-id': 'uint32', 178 '*vlan-id': 'uint16', '*eth-src': 'str', '*eth-dst': 'str', 179 '*ip-proto': 'uint8', '*ip-tos': 'uint8' } } 180 --- 10 unchanged lines hidden (view full) --- 191# 192# @vlan-id: VLAN ID 193# 194# @new-vlan-id: new VLAN ID 195# 196# @out-pport: physical output port 197# 198# Note: optional members may or may not appear in the flow action |
201# depending if they're relevant to the flow action. | 199# depending if they're relevant to the flow action. |
202# 203# Since: 2.4 204## 205{ 'struct': 'RockerOfDpaFlowAction', 206 'data' : { '*goto-tbl': 'uint32', '*group-id': 'uint32', 207 '*tunnel-lport': 'uint32', '*vlan-id': 'uint16', 208 '*new-vlan-id': 'uint16', '*out-pport': 'uint32' } } 209 --- 20 unchanged lines hidden (view full) --- 230 231## 232# @query-rocker-of-dpa-flows: 233# 234# Return rocker OF-DPA flow information. 235# 236# @name: switch name 237# | 200# 201# Since: 2.4 202## 203{ 'struct': 'RockerOfDpaFlowAction', 204 'data' : { '*goto-tbl': 'uint32', '*group-id': 'uint32', 205 '*tunnel-lport': 'uint32', '*vlan-id': 'uint16', 206 '*new-vlan-id': 'uint16', '*out-pport': 'uint32' } } 207 --- 20 unchanged lines hidden (view full) --- 228 229## 230# @query-rocker-of-dpa-flows: 231# 232# Return rocker OF-DPA flow information. 233# 234# @name: switch name 235# |
238# @tbl-id: flow table ID. If tbl-id is not specified, returns 239# flow information for all tables. | 236# @tbl-id: flow table ID. If tbl-id is not specified, returns flow 237# information for all tables. |
240# 241# Returns: rocker OF-DPA flow information 242# 243# Since: 2.4 244# 245# Example: 246# 247# -> { "execute": "query-rocker-of-dpa-flows", 248# "arguments": { "name": "sw1" } } 249# <- { "return": [ {"key": {"in-pport": 0, "priority": 1, "tbl-id": 0}, 250# "hits": 138, 251# "cookie": 0, 252# "action": {"goto-tbl": 10}, 253# "mask": {"in-pport": 4294901760} 254# }, 255# {...more...}, 256# ]} | 238# 239# Returns: rocker OF-DPA flow information 240# 241# Since: 2.4 242# 243# Example: 244# 245# -> { "execute": "query-rocker-of-dpa-flows", 246# "arguments": { "name": "sw1" } } 247# <- { "return": [ {"key": {"in-pport": 0, "priority": 1, "tbl-id": 0}, 248# "hits": 138, 249# "cookie": 0, 250# "action": {"goto-tbl": 10}, 251# "mask": {"in-pport": 4294901760} 252# }, 253# {...more...}, 254# ]} |
257# | |
258## 259{ 'command': 'query-rocker-of-dpa-flows', 260 'data': { 'name': 'str', '*tbl-id': 'uint32' }, 261 'returns': ['RockerOfDpaFlow'] } 262 263## 264# @RockerOfDpaGroup: 265# --- 21 unchanged lines hidden (view full) --- 287# 288# @set-eth-src: set source MAC address in Ethernet header 289# 290# @set-eth-dst: set destination MAC address in Ethernet header 291# 292# @ttl-check: perform TTL check 293# 294# Note: optional members may or may not appear in the group depending | 255## 256{ 'command': 'query-rocker-of-dpa-flows', 257 'data': { 'name': 'str', '*tbl-id': 'uint32' }, 258 'returns': ['RockerOfDpaFlow'] } 259 260## 261# @RockerOfDpaGroup: 262# --- 21 unchanged lines hidden (view full) --- 284# 285# @set-eth-src: set source MAC address in Ethernet header 286# 287# @set-eth-dst: set destination MAC address in Ethernet header 288# 289# @ttl-check: perform TTL check 290# 291# Note: optional members may or may not appear in the group depending |
295# if they're relevant to the group type. | 292# if they're relevant to the group type. |
296# 297# Since: 2.4 298## 299{ 'struct': 'RockerOfDpaGroup', 300 'data': { 'id': 'uint32', 'type': 'uint8', '*vlan-id': 'uint16', 301 '*pport': 'uint32', '*index': 'uint32', '*out-pport': 'uint32', 302 '*group-id': 'uint32', '*set-vlan-id': 'uint16', 303 '*pop-vlan': 'uint8', '*group-ids': ['uint32'], 304 '*set-eth-src': 'str', '*set-eth-dst': 'str', 305 '*ttl-check': 'uint8' } } 306 307## 308# @query-rocker-of-dpa-groups: 309# 310# Return rocker OF-DPA group information. 311# 312# @name: switch name 313# | 293# 294# Since: 2.4 295## 296{ 'struct': 'RockerOfDpaGroup', 297 'data': { 'id': 'uint32', 'type': 'uint8', '*vlan-id': 'uint16', 298 '*pport': 'uint32', '*index': 'uint32', '*out-pport': 'uint32', 299 '*group-id': 'uint32', '*set-vlan-id': 'uint16', 300 '*pop-vlan': 'uint8', '*group-ids': ['uint32'], 301 '*set-eth-src': 'str', '*set-eth-dst': 'str', 302 '*ttl-check': 'uint8' } } 303 304## 305# @query-rocker-of-dpa-groups: 306# 307# Return rocker OF-DPA group information. 308# 309# @name: switch name 310# |
314# @type: group type. If type is not specified, returns 315# group information for all group types. | 311# @type: group type. If type is not specified, returns group 312# information for all group types. |
316# 317# Returns: rocker OF-DPA group information 318# 319# Since: 2.4 320# 321# Example: 322# 323# -> { "execute": "query-rocker-of-dpa-groups", --- 6 unchanged lines hidden (view full) --- 330# "pop-vlan": 1, "id": 251723776}, 331# {"type": 0, "out-pport": 1, 332# "pport": 1, "vlan-id": 3840, 333# "pop-vlan": 1, "id": 251658241}, 334# {"type": 0, "out-pport": 0, 335# "pport": 0, "vlan-id": 3840, 336# "pop-vlan": 1, "id": 251658240} 337# ]} | 313# 314# Returns: rocker OF-DPA group information 315# 316# Since: 2.4 317# 318# Example: 319# 320# -> { "execute": "query-rocker-of-dpa-groups", --- 6 unchanged lines hidden (view full) --- 327# "pop-vlan": 1, "id": 251723776}, 328# {"type": 0, "out-pport": 1, 329# "pport": 1, "vlan-id": 3840, 330# "pop-vlan": 1, "id": 251658241}, 331# {"type": 0, "out-pport": 0, 332# "pport": 0, "vlan-id": 3840, 333# "pop-vlan": 1, "id": 251658240} 334# ]} |
338# | |
339## 340{ 'command': 'query-rocker-of-dpa-groups', 341 'data': { 'name': 'str', '*type': 'uint8' }, 342 'returns': ['RockerOfDpaGroup'] } | 335## 336{ 'command': 'query-rocker-of-dpa-groups', 337 'data': { 'name': 'str', '*type': 'uint8' }, 338 'returns': ['RockerOfDpaGroup'] } |