Skip to content

Latest commit

 

History

History
148 lines (105 loc) · 3.14 KB

LearningSwitch.md

File metadata and controls

148 lines (105 loc) · 3.14 KB

LearningSwitch

emulates a layer 2 switch.


REST APIs


get Object property.

[Request]:
  • Body : none
[Response]:

update Object property.

[Request]:
[Response]:

get FDB entry.

[Request]:
  • Body : none
[Response]:
  • Status Code : 200
  • Body : FDB
key value
mac ["node_id" : <string> , "port_id" : <string> ]
example(JSON)
{
    "01:02:03:04:05:06": [ 
      "node_id" : "node1",
      "port_id" : "port1"
    ],
    "0A:0B:0C:0D:0E:0F": [
      "node_id" : "node2",
      "port_id" : "port1"
    ],
        …
}

delete all FDB (Initialize FDB)

[Request]:
  • Body : none
[Response]:
  • Status Code : 200
  • Body : none

delete FDB entry.
mac delimiter(Colon) is not used.

[Request]:
  • Body : none
[Response]:
  • Status Code : 200
  • Body : none

get the flow "idle timeout"

[Request]:
  • Body : none
[Response]:
  • Status Code : 200
  • Body : <integer>

set the flow "idle timeout"

[Request]:
  • Body : <integer>
[Response]:
  • Status Code : 200
  • Body : <integer>

get the flow "hard timeout"

[Request]:
  • Body : none
[Response]:
  • Status Code : 200
  • Body : <integer>

set the flow "hard timeout"

[Request]:
  • Body : <integer>
[Response]:
  • Status Code : 200
  • Body : <integer>