Add patch_panel example
This commit is contained in:
parent
b16cafbb5c
commit
51729542f3
12 changed files with 227 additions and 0 deletions
16
examples/patch_panel/README.md
Normal file
16
examples/patch_panel/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# PatchPanel
|
||||
|
||||
openflow controller that emulates a software patch panel
|
||||
|
||||
## prerequisites
|
||||
|
||||
- Erlang 20 or higher
|
||||
- Elixir 1.6.1 or higher
|
||||
- OpenFlow switch supports version 1.3
|
||||
|
||||
```iex
|
||||
# To add a patch link
|
||||
iex > :ok = PatchPanel.Openflow.Controller.create_patch("de780562fb45, 1, 2)
|
||||
# To delete a patch link
|
||||
iex > :ok = PatchPanel.Openflow.Controller.delete_patch("de780562fb45, 1, 2)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue