Commit a4ddcb00 authored by Nawasan Wisitsingkhon's avatar Nawasan Wisitsingkhon

add derve clone for controller10

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