Guest User

Untitled

a guest
Jan 21st, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. diff --git a/ruby/trema/open-vswitch.rb b/ruby/trema/open-vswitch.rb
  2. index 37341e0..ed0a2ca 100644
  3. --- a/ruby/trema/open-vswitch.rb
  4. +++ b/ruby/trema/open-vswitch.rb
  5. @@ -195,6 +195,7 @@ module Trema
  6. "--verbose=ANY:console:err",
  7. "--log-file=#{ log_file }",
  8. "--datapath-id=#{ dpid_long }",
  9. + "--unixctl=#{ unixctl }",
  10. ] + ports_option
  11. end
  12.  
  13. @@ -233,6 +234,18 @@ module Trema
  14. def log_file
  15. "#{ Trema.tmp }/log/openflowd.#{ @name }.log"
  16. end
  17. +
  18. +
  19. + #
  20. + # The path of control socket
  21. + #
  22. + # @return [String]
  23. + #
  24. + # @api private
  25. + #
  26. + def unixctl
  27. + "#{ Trema.tmp }/ovs-openflowd.#{ $$ }.ctl"
  28. + end
  29. end
  30. end
Add Comment
Please, Sign In to add comment