Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
Tenjin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nawasan Wisitsingkhon
Tenjin
Commits
f1c8a60e
Commit
f1c8a60e
authored
Aug 04, 2024
by
Nawasan Wisitsingkhon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update version and update readme
parent
1a980996
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
2 deletions
+44
-2
Cargo.lock
Cargo.lock
+1
-1
Cargo.toml
Cargo.toml
+1
-1
README.md
README.md
+42
-0
No files found.
Cargo.lock
View file @
f1c8a60e
...
...
@@ -10,7 +10,7 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]]
name = "tenjin"
version = "0.
1
.0"
version = "0.
2
.0"
dependencies = [
"byteorder",
]
Cargo.toml
View file @
f1c8a60e
[package]
name
=
"tenjin"
version
=
"0.
1
.0"
version
=
"0.
2
.0"
edition
=
"2021"
[lib]
...
...
README.md
View file @
f1c8a60e
...
...
@@ -8,6 +8,48 @@ To understand The software-defined networking well, I trying to create a simple
## Get started
### Openflow 1.3
1.
import Controller13 into main func.
```
rust
use
tenjin
::{
example
,
openflow
::
ofp13
::
ControllerFrame13
};
extern
crate
byteorder
;
fn
main
()
->
Result
<
(),
std
::
io
::
Error
>
{
let
controller
=
example
::
Controller13
::
new
();
controller
.listener
(
"127.0.0.1:6633"
);
Ok
(())
}
```
2.
run Tenjin
```
bash
cargo run
--release
```
3.
run mininet
```
bash
sudo
mn
--controller
=
remote,ip
=
127.0.0.1
--mac
--switch
=
ovsk,protocols
=
OpenFlow13
--topo
=
tree,2
```
### Openflow 1.0
import Controller10 into main func.
```
rust
use
tenjin
::{
example
,
openflow
::
ofp10
::
ControllerFrame10
};
extern
crate
byteorder
;
fn
main
()
->
Result
<
(),
std
::
io
::
Error
>
{
let
controller
=
example
::
Controller10
::
new
();
controller
.listener
(
"127.0.0.1:6633"
);
Ok
(())
}
```
run Tenjin
```
bash
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment