- プレスリリース: 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
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
# 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
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
# 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
$><<[[[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []], [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []], [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [] |
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
git clone https://github.com/trema/trema-edge.git | |
Cloning into 'trema-edge'... | |
remote: Counting objects: 15697, done. | |
remote: Compressing objects: 100% (3932/3932), done. | |
remote: Total 15697 (delta 12073), reused 15309 (delta 11690) | |
Receiving objects: 100% (15697/15697), 13.43 MiB | 881 KiB/s, done. | |
Resolving deltas: 100% (12073/12073), done. |
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
require "rubygems" | |
require "mechanize" | |
class VoteForTrema < Controller | |
def start | |
info "OK, I'm registered to vote" | |
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
* Trema in 10 minutes: http://trema-10min.heroku.com/ | |
プログラマ向けの「10 分で分かる Trema」資料です。 | |
* Trema Tutorial: http://trema-tutorial.heroku.com/ | |
* GEC Trema Tutorial: http://trema-tutorial-gec13.heroku.com/ | |
Trema の基本的なチュートリアルです (それぞれ約 3 時間分) | |
チュートリアル用のファイルは→ https://github.com/trema/tutorial.files | |
* Test-first OpenFlow Programming with Trema: http://testfirst-trema.heroku.com/ | |
* Trema でテスト駆動 OpenFlow プログラミング: http://trema-tutorial-ja.heroku.com/ |