Commit 38b947f3 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

fix some warning and use cli in main

parent db268eb4
......@@ -70,7 +70,7 @@ impl ControllerFrame10 for Controller10 {
match_fields.mac_dest = Some(mac_dst);
match_fields.mac_src = Some(mac_src);
if let Some(buf_id) = packetin.buf_id {
self.add_flow(xid, 1, match_fields, &actions, Some(buf_id as u32), stream)
self.add_flow(xid, 1, match_fields, &actions, Some(buf_id), stream)
.await;
return;
} else {
......
use tenjin::{example::{Controller10, Controller13}, openflow::{ofp10::ControllerFrame10, ofp13::ControllerFrame13}};
use tenjin::cli::cli_system;
/**
* If you prefer to run only Controller without cli.
......@@ -12,6 +12,5 @@ fn main() {
*/
#[tokio::main]
async fn main() {
let controller = Controller10::new();
controller.listener("127.0.0.1:6653").await;
cli_system::system().await;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment