To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaborator-p (--port) option
-p (--port) option overrides the default openflow channel port.
- Background
-
- Given
-
I set the environment variables to:
variable value TREMA_LOG_DIR . TREMA_PID_DIR . TREMA_SOCKET_DIR . - And
-
a file named "switch_ready.rb" with:
class SwitchReady < Trema::Controller def switch_ready(dpid) logger.info 'connected to port 1234' end end
- And
-
a file named "trema.conf" with:
vswitch { datapath_id 0xabc port 1234 }
- Scenarios
-
- -p option
-
- When
-
I successfully run
trema run -p 1234 switch_ready.rb -c trema.conf -d
- And
- sleep 5
- Then
- the file "SwitchReady.log" should contain "connected to port 1234"
- --port option
-
- When
-
I successfully run
trema run --port 1234 switch_ready.rb -c trema.conf -d
- And
- sleep 5
- Then
- the file "SwitchReady.log" should contain "connected to port 1234"
Last published over 5 years ago by Yasuhito Takamiya.