Commit a4ddcb00 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

add derve clone for controller10

parent d7bd9dad
...@@ -16,6 +16,7 @@ use crate::{ ...@@ -16,6 +16,7 @@ use crate::{
* In production please remove allow unused. * In production please remove allow unused.
*/ */
#[derive(Clone)]
pub struct Controller10 { pub struct Controller10 {
mac_to_port: HashMap<u64, u16>, mac_to_port: HashMap<u64, u16>,
} }
......
use tenjin::example; use tenjin::{example, openflow::ofp10::ControllerFrame10};
use tenjin::openflow::ofp13::ControllerFrame13;
extern crate byteorder; extern crate byteorder;
fn main() -> Result<(), std::io::Error> { fn main() -> Result<(), std::io::Error> {
let controller = example::Controller13::new(); let controller = example::Controller10::new();
controller.listener("127.0.0.1:6633"); controller.listener("127.0.0.1:6633");
Ok(()) Ok(())
} }
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