- プレスリリース: http://axsh.jp/news/publicity/894
- ソースコード: https://github.com/axsh/wakame-vdc/
- 主なユーザ
- 国立情報学研究所 (プライベートクラウド)
- 九州電力 (プライベートクラウド)
- 大手メーカー (顧客向けWebシステムの基盤として)
- NTTPCコミュニケーションズ WebARENA VPSクラウド (パブリッククラウド)
- 京セラコミュニケーションシステム GreenOffice Unified Cloud (パブリッククラウド)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # peco + git issue | |
| function found_command { which $1 &> /dev/null } | |
| function is_issued() { | |
| ISSUE_TYPE=$(git config issue.type 2>/dev/null) | |
| if [ "$ISSUE_TYPE" != "" ]; then | |
| return 0 | |
| else | |
| return 1 | |
| fi | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RoutingSwitch < Trema::Controller | |
| # ... | |
| def start_topology | |
| TopologyController.new { |topo| topo.add_observer @path_manager }.start | |
| end | |
| end | |
| class PathManager < Trema::Controller | |
| # ... | |
| def delete_link(port_a, port_b, _topology) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # L2 routing path manager | |
| class PathManager < Trema::Controller | |
| def packet_in(_dpid, message) | |
| path = maybe_create_shortest_path(message) | |
| ports = path ? [path.out_port] : @graph.external_ports | |
| ports.each do |each| | |
| send_packet_out(each.dpid, | |
| raw_data: message.raw_data, | |
| actions: SendOutPort.new(each.number)) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| get 'slices/:slice_id' do | |
| rest_api { Slice.find_by!(name: params[:slice_id]) } | |
| end | |
| class Slice | |
| def self.find_by!(query) | |
| # ... | |
| remote_klass = | |
| Trema.trema_process('RoutingSwitch', socket_dir).controller.slice | |
| remote_klass.find_by!(query) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class RoutingSwitch < Trema::Controller | |
| delegate :switch_ready, to: :@topology | |
| delegate :features_reply, to: :@topology | |
| delegate :switch_disconnected, to: :@topology | |
| delegate :port_modify, to: :@topology | |
| def packet_in(dpid, packet_in) | |
| @topology.packet_in(dpid, packet_in) | |
| @path_manager.packet_in(dpid, packet_in) unless packet_in.lldp? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /home/yasuhito/.rvm/rubies/ruby-2.1.8/bin/ruby -I/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.2.3/lib:/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-support-3.2.2/lib /home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.2.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb | |
| [31mYou are using HTTP Gem 0.5.1. WebMock supports version >= 0.6.0.[0m | |
| [32m[Coveralls] Set up the SimpleCov formatter.[0m | |
| [32m[Coveralls] Using SimpleCov's default settings.[0m | |
| /home/yasuhito/.rvm/gems/ruby-2.1.8/gems/sinatra-contrib-1.4.4/lib/sinatra/respond_with.rb:4: warning: variable $KCODE is no longer effective; ignored | |
| Run options: include {:focus=>true} | |
| All examples were filtered out; ignoring {:focus=>true} | |
| VNetAPIClient |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /home/yasuhito/.rvm/rubies/ruby-2.1.8/bin/ruby -I/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.4.3/lib:/home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-support-3.4.1/lib /home/yasuhito/.rvm/gems/ruby-2.1.8/gems/rspec-core-3.4.3/exe/rspec --pattern spec/\*\*\{,/\*/\*\*\}/\*_spec.rb | |
| [31mYou are using HTTP Gem 0.5.1. WebMock supports version >= 0.6.0.[0m | |
| [32m[Coveralls] Set up the SimpleCov formatter.[0m | |
| [32m[Coveralls] Using SimpleCov's default settings.[0m | |
| Run options: include {:focus=>true} | |
| All examples were filtered out; ignoring {:focus=>true} | |
| VNetAPIClient | |
| has implemented and tested all routes in the OpenVNet WebAPI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module TitleHelper | |
| def title(text: nil, size: nil, url: nil, spaced: false, &block) | |
| body = text || capture(&block) || raise('Text is a mandatory.') | |
| klass = CssClassString::Helper.new('title', "is-#{size}" => size, 'is-spaced' => spaced).to_s | |
| if url | |
| link_to body, url, class: klass | |
| else | |
| tag.__send__ "h#{size || 3}", body, class: klass | |
| end | |
| end |