havox 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +674 -0
  7. data/README.md +82 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/config.rb +4 -0
  12. data/examples/example_3x3.dot +81 -0
  13. data/examples/example_3x3.hvx +5 -0
  14. data/exe/havox +107 -0
  15. data/havox.gemspec +33 -0
  16. data/lib/havox.rb +51 -0
  17. data/lib/havox/app/api.rb +57 -0
  18. data/lib/havox/app/helpers/methods.rb +43 -0
  19. data/lib/havox/classes/edge.rb +11 -0
  20. data/lib/havox/classes/modified_policy.rb +44 -0
  21. data/lib/havox/classes/node.rb +19 -0
  22. data/lib/havox/classes/policy.rb +68 -0
  23. data/lib/havox/classes/rib.rb +30 -0
  24. data/lib/havox/classes/route.rb +82 -0
  25. data/lib/havox/classes/route_filler.rb +43 -0
  26. data/lib/havox/classes/rule.rb +74 -0
  27. data/lib/havox/classes/rule_expander.rb +47 -0
  28. data/lib/havox/classes/rule_sanitizer.rb +42 -0
  29. data/lib/havox/classes/topology.rb +75 -0
  30. data/lib/havox/classes/translator.rb +37 -0
  31. data/lib/havox/configuration.rb +20 -0
  32. data/lib/havox/dsl/directive.rb +70 -0
  33. data/lib/havox/dsl/directive_proxy.rb +36 -0
  34. data/lib/havox/dsl/examples/routeflow.hvx +12 -0
  35. data/lib/havox/dsl/network.rb +64 -0
  36. data/lib/havox/exceptions.rb +21 -0
  37. data/lib/havox/modules/command.rb +31 -0
  38. data/lib/havox/modules/field_parser.rb +21 -0
  39. data/lib/havox/modules/merlin.rb +85 -0
  40. data/lib/havox/modules/openflow10/ovs/actions.rb +41 -0
  41. data/lib/havox/modules/openflow10/ovs/matches.rb +35 -0
  42. data/lib/havox/modules/openflow10/routeflow/actions.rb +45 -0
  43. data/lib/havox/modules/openflow10/routeflow/matches.rb +44 -0
  44. data/lib/havox/modules/openflow10/trema/actions.rb +45 -0
  45. data/lib/havox/modules/openflow10/trema/matches.rb +43 -0
  46. data/lib/havox/modules/routeflow.rb +50 -0
  47. data/lib/havox/version.rb +3 -0
  48. data/lib/merlin/policies/common.mln +9 -0
  49. data/lib/merlin/policies/defense.mln +5 -0
  50. data/lib/merlin/policies/max.mln +2 -0
  51. data/lib/merlin/policies/min.mln +2 -0
  52. data/lib/merlin/policies/routeflow.mln +8 -0
  53. data/lib/merlin/policies/test.mln +2 -0
  54. data/lib/merlin/policies/tetrahedron.mln +8 -0
  55. data/lib/merlin/policies/tetrahedron.sample.mln +15 -0
  56. data/lib/merlin/policies/web_balanced.mln +7 -0
  57. data/lib/merlin/policies/web_unbalanced.mln +2 -0
  58. data/lib/merlin/topologies/common.dot +63 -0
  59. data/lib/merlin/topologies/defense.dot +20 -0
  60. data/lib/merlin/topologies/max.dot +17 -0
  61. data/lib/merlin/topologies/min.dot +11 -0
  62. data/lib/merlin/topologies/routeflow.dot +37 -0
  63. data/lib/merlin/topologies/tetrahedron.dot +39 -0
  64. data/lib/trema/controllers/main_controller.rb +113 -0
  65. data/lib/trema/topologies/common_topology.rb +36 -0
  66. data/lib/trema/topologies/routeflow_topology.rb +21 -0
  67. data/lib/trema/topologies/tetrahedron_topology.rb +22 -0
  68. metadata +253 -0
@@ -0,0 +1,20 @@
1
+ digraph g1 {
2
+
3
+ h1[type=host,mac="00:00:00:00:00:01",ip="10.0.0.1"];
4
+ h2[type=host,mac="00:00:00:00:00:02",ip="10.0.0.2"];
5
+ m1[type=host,mac="00:00:00:00:00:03",ip="10.0.0.3"];
6
+ s1[type=switch, ip="11.0.0.1", id=1];
7
+
8
+ s1 -> h1 [src_port=0, dst_port=0, cost=1, capacity="1Gbps"];
9
+ h1 -> s1 [src_port=0, dst_port=0, cost=1, capacity="1Gbps"];
10
+
11
+ s1 -> h2 [src_port=1, dst_port=0, cost=1, capacity="1Gbps"];
12
+ h2 -> s1 [src_port=0, dst_port=1, cost=1, capacity="1Gbps"];
13
+
14
+ s1 -> m1 [src_port=2, dst_port=0, cost=1, capacity="1Gbps"];
15
+ m1 -> s1 [src_port=0, dst_port=2, cost=1, capacity="1Gbps"];
16
+
17
+ h1 -> h1 [src_port=1, dst_port=2, cost=1, capacity="1Gbps"];
18
+ h2 -> h2 [src_port=1, dst_port=2, cost=1, capacity="1Gbps"];
19
+ m1 -> m1 [src_port=1, dst_port=2, cost=1, capacity="1Gbps"];
20
+ }
@@ -0,0 +1,17 @@
1
+ digraph g1 {
2
+
3
+ h1[type=host,ip="10.0.0.1",mac="00:00:00:00:00:01"];
4
+ h2[type=host,ip="10.0.0.2",mac="00:00:00:00:00:02"];
5
+ m1[type=host,mac="00:00:00:00:00:03",ip="10.0.0.3"];
6
+ s1[type=switch, ip="11.0.0.1", id=1];
7
+
8
+ s1 -> h1 [src_port=0, dst_port=0, cost=1];
9
+ h1 -> s1 [src_port=0, dst_port=0, cost=1];
10
+
11
+ s1 -> h2 [src_port=1, dst_port=0, cost=1];
12
+ h2 -> s1 [src_port=0, dst_port=1, cost=1];
13
+
14
+
15
+ h1 -> h1 [src_port=1, dst_port=2, cost=1];
16
+ h2 -> h2 [src_port=1, dst_port=2, cost=1];
17
+ }
@@ -0,0 +1,11 @@
1
+ digraph g1 {
2
+ h1 [type = host, mac = "00:1a:a0:0a:3b:9a", ip = "10.0.0.1"];
3
+ h2 [type = host, mac = "00:1a:a0:0a:42:72", ip = "10.0.0.2"];
4
+ s1 [type = switch, ip = "11.0.0.1", id = 1];
5
+
6
+ s1 -> h1 [src_port = 0, dst_port = 0, cost = 1, capacity = "10Gbps"];
7
+ h1 -> s1 [src_port = 0, dst_port = 0, cost = 1, capacity = "10Gbps"];
8
+
9
+ s1 -> h2 [src_port = 1, dst_port = 0, cost = 1, capacity = "10Gbps"];
10
+ h2 -> s1 [src_port = 0, dst_port = 1, cost = 1, capacity = "10Gbps"];
11
+ }
@@ -0,0 +1,37 @@
1
+ digraph g1 {
2
+ h1 [type = host, mac = "00:00:00:00:00:01", ip = "172.31.1.100"];
3
+ h2 [type = host, mac = "00:00:00:00:00:02", ip = "172.31.2.100"];
4
+ h3 [type = host, mac = "00:00:00:00:00:03", ip = "172.31.3.100"];
5
+ h4 [type = host, mac = "00:00:00:00:00:04", ip = "172.31.4.100"];
6
+
7
+ s5 [type = switch, ip = "172.31.1.1", id = 5];
8
+ s6 [type = switch, ip = "172.31.2.1", id = 6];
9
+ s7 [type = switch, ip = "172.31.3.1", id = 7];
10
+ s8 [type = switch, ip = "172.31.4.1", id = 8];
11
+
12
+ s5 -> h1 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
13
+ h1 -> s5 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
14
+
15
+ s6 -> h2 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
16
+ h2 -> s6 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
17
+
18
+ s7 -> h3 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
19
+ h3 -> s7 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
20
+
21
+ s8 -> h4 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
22
+ h4 -> s8 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
23
+
24
+ s5 -> s6 [src_port = 2, dst_port = 2, cost = 1, capacity = "1Gbps"];
25
+ s5 -> s7 [src_port = 3, dst_port = 3, cost = 1, capacity = "1Gbps"];
26
+ s5 -> s8 [src_port = 4, dst_port = 4, cost = 1, capacity = "1Gbps"];
27
+
28
+ s6 -> s5 [src_port = 2, dst_port = 2, cost = 1, capacity = "1Gbps"];
29
+ s6 -> s8 [src_port = 3, dst_port = 2, cost = 1, capacity = "1Gbps"];
30
+
31
+ s7 -> s5 [src_port = 3, dst_port = 3, cost = 1, capacity = "1Gbps"];
32
+ s7 -> s8 [src_port = 2, dst_port = 3, cost = 1, capacity = "1Gbps"];
33
+
34
+ s8 -> s5 [src_port = 4, dst_port = 4, cost = 1, capacity = "1Gbps"];
35
+ s8 -> s6 [src_port = 2, dst_port = 3, cost = 1, capacity = "1Gbps"];
36
+ s8 -> s7 [src_port = 3, dst_port = 2, cost = 1, capacity = "1Gbps"];
37
+ }
@@ -0,0 +1,39 @@
1
+ digraph g1 {
2
+ h1 [type = host, mac = "00:00:00:00:00:01", ip = "10.0.0.10"];
3
+ h2 [type = host, mac = "00:00:00:00:00:02", ip = "10.0.0.20"];
4
+ h3 [type = host, mac = "00:00:00:00:00:03", ip = "10.0.0.30"];
5
+ h4 [type = host, mac = "00:00:00:00:00:04", ip = "10.0.0.40"];
6
+
7
+ s1 [type = switch, ip = "11.0.0.1", id = 1];
8
+ s2 [type = switch, ip = "11.0.0.2", id = 2];
9
+ s3 [type = switch, ip = "11.0.0.3", id = 3];
10
+ s4 [type = switch, ip = "11.0.0.4", id = 4];
11
+
12
+ s1 -> h1 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
13
+ h1 -> s1 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
14
+
15
+ s2 -> h2 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
16
+ h2 -> s2 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
17
+
18
+ s3 -> h3 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
19
+ h3 -> s3 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
20
+
21
+ s4 -> h4 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
22
+ h4 -> s4 [src_port = 1, dst_port = 1, cost = 1, capacity = "1Gbps"];
23
+
24
+ s1 -> s2 [src_port = 2, dst_port = 2, cost = 1, capacity = "1Gbps"];
25
+ s1 -> s3 [src_port = 3, dst_port = 2, cost = 1, capacity = "1Gbps"];
26
+ s1 -> s4 [src_port = 4, dst_port = 2, cost = 1, capacity = "1Gbps"];
27
+
28
+ s2 -> s1 [src_port = 2, dst_port = 2, cost = 1, capacity = "1Gbps"];
29
+ s2 -> s3 [src_port = 3, dst_port = 3, cost = 1, capacity = "1Gbps"];
30
+ s2 -> s4 [src_port = 4, dst_port = 4, cost = 1, capacity = "1Gbps"];
31
+
32
+ s3 -> s1 [src_port = 2, dst_port = 3, cost = 1, capacity = "1Gbps"];
33
+ s3 -> s2 [src_port = 3, dst_port = 3, cost = 1, capacity = "1Gbps"];
34
+ s3 -> s4 [src_port = 4, dst_port = 3, cost = 1, capacity = "1Gbps"];
35
+
36
+ s4 -> s1 [src_port = 2, dst_port = 4, cost = 1, capacity = "1Gbps"];
37
+ s4 -> s2 [src_port = 4, dst_port = 4, cost = 1, capacity = "1Gbps"];
38
+ s4 -> s3 [src_port = 3, dst_port = 4, cost = 1, capacity = "1Gbps"];
39
+ }
@@ -0,0 +1,113 @@
1
+ require 'havox'
2
+ require 'colorize'
3
+
4
+ class MainController < Trema::Controller
5
+ timer_event :datapath_statuses, interval: 10.sec
6
+
7
+ def start(_argv)
8
+ initialize_instance_vars
9
+ logger.info "Generating rules based on the policies defined in #{ENV['HAVOX_MERLIN_POLICY'].bold}" \
10
+ " over the topology #{ENV['HAVOX_MERLIN_TOPOLOGY'].bold}..."
11
+ define_havox_options
12
+ @rules = Havox::Merlin.compile!(ENV['HAVOX_MERLIN_TOPOLOGY'], ENV['HAVOX_MERLIN_POLICY'], @opts)
13
+ datapath_rules_info
14
+ rescue => e
15
+ handle_exception(e)
16
+ end
17
+
18
+ def switch_ready(dp_id)
19
+ install_rules(dp_id)
20
+ @datapaths << dp_id
21
+ @datapaths_off -= [dp_id]
22
+ dp_name = "s#{dp_id}"
23
+ logger.info "Datapath #{dp_name.bold} is #{'ONLINE'.bold.green}"
24
+ rescue => e
25
+ handle_exception(e)
26
+ end
27
+
28
+ def switch_disconnected(dp_id)
29
+ @datapaths -= [dp_id]
30
+ @datapaths_off << dp_id
31
+ dp_name = "s#{dp_id}"
32
+ logger.info "Datapath #{dp_name.bold} is #{'OFFLINE'.bold.red}"
33
+ end
34
+
35
+ def packet_in(dp_id, packet_in)
36
+ packet_details(packet_in)
37
+ end
38
+
39
+ private
40
+
41
+ def datapath_statuses
42
+ datapaths_on = @datapaths.map { |id| "s#{id}" }.join(' ').bold.green
43
+ datapaths_off = @datapaths_off.map { |id| "s#{id}" }.join(' ').bold.red
44
+ logger.info "Datapath statuses: [#{datapaths_on}] [#{datapaths_off}]"
45
+ end
46
+
47
+ def install_rules(dp_id)
48
+ dp_rules = @rules.select { |r| r.dp_id == dp_id }
49
+ flow_mod_rules(dp_id, dp_rules) if dp_rules.any?
50
+ end
51
+
52
+ def flow_mod_rules(dp_id, dp_rules)
53
+ dp_rules.each do |rule|
54
+ send_flow_mod_add(
55
+ dp_id,
56
+ match: Pio::Match.new(rule.matches),
57
+ actions: action_methods(rule.actions)
58
+ )
59
+ end
60
+ end
61
+
62
+ def action_methods(actions_array)
63
+ methods = []
64
+ actions_array.each do |obj|
65
+ methods <<
66
+ case obj[:action]
67
+ when :output then Pio::OpenFlow10::SendOutPort.new(obj[:arg_a])
68
+ when :enqueue then Pio::OpenFlow10::Enqueue.new(obj[:arg_a], obj[:arg_b])
69
+ when :strip_vlan then Pio::OpenFlow10::StripVlanHeader.new
70
+ when :set_vlan_vid then Pio::OpenFlow10::SetVlanVid.new(obj[:arg_a])
71
+ else raise Havox::Trema::UnpredictedAction,
72
+ "No method associated with action '#{obj[:action]}'"
73
+ end
74
+ end
75
+ methods
76
+ end
77
+
78
+ def datapath_rules_info
79
+ logger.info "Generated #{@rules.size} Merlin rules:"
80
+ @rules.group_by(&:dp_id).each do |id, rules|
81
+ logger.info "Datapath s#{id}: #{rules.size} rule(s)"
82
+ end
83
+ end
84
+
85
+ def handle_exception(e)
86
+ puts e.message
87
+ puts e.backtrace
88
+ end
89
+
90
+ def packet_details(packet_in)
91
+ logger.info "#{packet_in.data.class.name}: dp_id=#{packet_in.dpid} " \
92
+ "in_port=#{packet_in.in_port} src_mac=#{packet_in.source_mac} " \
93
+ "dst_mac=#{packet_in.destination_mac} inspection=#{packet_in.inspect}"
94
+ end
95
+
96
+ def initialize_instance_vars
97
+ @opts = {}
98
+ @datapaths = []
99
+ @datapaths_off = []
100
+ @rules = []
101
+ end
102
+
103
+ def define_havox_options
104
+ @opts[:force] = ENV['HAVOX_FORCE'].eql?('true')
105
+ @opts[:basic] = ENV['HAVOX_BASIC'].eql?('true')
106
+ @opts[:expand] = ENV['HAVOX_EXPAND'].eql?('true')
107
+ @opts[:output] = ENV['HAVOX_OUTPUT'].eql?('true')
108
+ logger.info 'Havox will ignore field conflicts in rules generated by Merlin'.blue if @opts[:force]
109
+ logger.info 'Havox will automatically append policies for ARP and ICMP protocols'.blue if @opts[:basic]
110
+ logger.info 'Havox will expand generated rules from VLAN-based to their full predicates'.blue if @opts[:expand]
111
+ logger.info 'Havox will switch all occurrences of Enqueue action to Output action'.blue if @opts[:output]
112
+ end
113
+ end
@@ -0,0 +1,36 @@
1
+ 6.times do |i|
2
+ id = i + 1
3
+ id_hex = id.to_s(16).rjust(2, '0')
4
+
5
+ vhost "h#{id}" do
6
+ ip "10.0.0.#{id}"
7
+ mac "00:00:00:00:00:#{id_hex}"
8
+ end
9
+
10
+ vswitch "s#{id}" do
11
+ datapath_id id
12
+ # ip "11.0.0.#{id}"
13
+ end
14
+
15
+ link "h#{id}", "s#{id}"
16
+ end
17
+
18
+ %w(20 60).each do |id|
19
+ id_hex = id.to_i.to_s(16).rjust(2, '0')
20
+
21
+ vhost "h#{id}" do
22
+ ip "10.0.0.#{id}"
23
+ mac "00:00:00:00:00:#{id_hex}"
24
+ end
25
+
26
+ link "h#{id}", "s#{id.to_i / 10}"
27
+ end
28
+
29
+ link 's1', 's2'
30
+ link 's1', 's3'
31
+ link 's2', 's3'
32
+ link 's2', 's4'
33
+ link 's3', 's4'
34
+ link 's3', 's5'
35
+ link 's4', 's6'
36
+ link 's5', 's6'
@@ -0,0 +1,21 @@
1
+ 4.times do |i|
2
+ id = i + 1
3
+
4
+ netns "h#{id}" do
5
+ ip "172.31.#{id}.100"
6
+ netmask '255.255.255.0'
7
+ route net: '0.0.0.0', gateway: "172.31.#{id}.1"
8
+ end
9
+
10
+ vswitch "s#{id}" do
11
+ datapath_id id
12
+ end
13
+
14
+ link "h#{id}", "s#{id}"
15
+ end
16
+
17
+ link 's1', 's2'
18
+ link 's1', 's3'
19
+ link 's1', 's4'
20
+ link 's2', 's4'
21
+ link 's3', 's4'
@@ -0,0 +1,22 @@
1
+ 4.times do |i|
2
+ id = i + 1
3
+
4
+ netns "h#{id}" do
5
+ ip "10.0.0.#{id * 10}"
6
+ netmask '255.255.255.0'
7
+ route net: '0.0.0.0', gateway: '10.0.0.1'
8
+ end
9
+
10
+ vswitch "s#{id}" do
11
+ datapath_id id
12
+ end
13
+
14
+ link "h#{id}", "s#{id}"
15
+ end
16
+
17
+ link 's1', 's2'
18
+ link 's1', 's3'
19
+ link 's1', 's4'
20
+ link 's2', 's3'
21
+ link 's2', 's4'
22
+ link 's3', 's4'
metadata ADDED
@@ -0,0 +1,253 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: havox
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.11.1
5
+ platform: ruby
6
+ authors:
7
+ - Rodrigo Soares
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-03-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.11'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.11'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: factory_girl
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '4.8'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '4.8'
69
+ - !ruby/object:Gem::Dependency
70
+ name: awesome_print
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.7'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.7'
83
+ - !ruby/object:Gem::Dependency
84
+ name: net-ssh
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: net-scp
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.2'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.2'
111
+ - !ruby/object:Gem::Dependency
112
+ name: trema
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.10.1
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.10.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: colorize
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.8'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.8'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sinatra
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '2.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '2.0'
153
+ description: This gem offers a friendly way to deal with OpenFlow network policies
154
+ generated by Merlin, integrating it with RouteFlow through a simple orchestration
155
+ DSL.
156
+ email:
157
+ - silvars1@gmail.com
158
+ executables:
159
+ - havox
160
+ extensions: []
161
+ extra_rdoc_files: []
162
+ files:
163
+ - ".gitignore"
164
+ - ".rspec"
165
+ - ".travis.yml"
166
+ - Gemfile
167
+ - LICENSE.txt
168
+ - README.md
169
+ - Rakefile
170
+ - bin/console
171
+ - bin/setup
172
+ - config.rb
173
+ - examples/example_3x3.dot
174
+ - examples/example_3x3.hvx
175
+ - exe/havox
176
+ - havox.gemspec
177
+ - lib/havox.rb
178
+ - lib/havox/app/api.rb
179
+ - lib/havox/app/helpers/methods.rb
180
+ - lib/havox/classes/edge.rb
181
+ - lib/havox/classes/modified_policy.rb
182
+ - lib/havox/classes/node.rb
183
+ - lib/havox/classes/policy.rb
184
+ - lib/havox/classes/rib.rb
185
+ - lib/havox/classes/route.rb
186
+ - lib/havox/classes/route_filler.rb
187
+ - lib/havox/classes/rule.rb
188
+ - lib/havox/classes/rule_expander.rb
189
+ - lib/havox/classes/rule_sanitizer.rb
190
+ - lib/havox/classes/topology.rb
191
+ - lib/havox/classes/translator.rb
192
+ - lib/havox/configuration.rb
193
+ - lib/havox/dsl/directive.rb
194
+ - lib/havox/dsl/directive_proxy.rb
195
+ - lib/havox/dsl/examples/routeflow.hvx
196
+ - lib/havox/dsl/network.rb
197
+ - lib/havox/exceptions.rb
198
+ - lib/havox/modules/command.rb
199
+ - lib/havox/modules/field_parser.rb
200
+ - lib/havox/modules/merlin.rb
201
+ - lib/havox/modules/openflow10/ovs/actions.rb
202
+ - lib/havox/modules/openflow10/ovs/matches.rb
203
+ - lib/havox/modules/openflow10/routeflow/actions.rb
204
+ - lib/havox/modules/openflow10/routeflow/matches.rb
205
+ - lib/havox/modules/openflow10/trema/actions.rb
206
+ - lib/havox/modules/openflow10/trema/matches.rb
207
+ - lib/havox/modules/routeflow.rb
208
+ - lib/havox/version.rb
209
+ - lib/merlin/policies/common.mln
210
+ - lib/merlin/policies/defense.mln
211
+ - lib/merlin/policies/max.mln
212
+ - lib/merlin/policies/min.mln
213
+ - lib/merlin/policies/routeflow.mln
214
+ - lib/merlin/policies/test.mln
215
+ - lib/merlin/policies/tetrahedron.mln
216
+ - lib/merlin/policies/tetrahedron.sample.mln
217
+ - lib/merlin/policies/web_balanced.mln
218
+ - lib/merlin/policies/web_unbalanced.mln
219
+ - lib/merlin/topologies/common.dot
220
+ - lib/merlin/topologies/defense.dot
221
+ - lib/merlin/topologies/max.dot
222
+ - lib/merlin/topologies/min.dot
223
+ - lib/merlin/topologies/routeflow.dot
224
+ - lib/merlin/topologies/tetrahedron.dot
225
+ - lib/trema/controllers/main_controller.rb
226
+ - lib/trema/topologies/common_topology.rb
227
+ - lib/trema/topologies/routeflow_topology.rb
228
+ - lib/trema/topologies/tetrahedron_topology.rb
229
+ homepage: https://github.com/rodrigosoares/havox
230
+ licenses:
231
+ - GPL-3.0
232
+ metadata: {}
233
+ post_install_message:
234
+ rdoc_options: []
235
+ require_paths:
236
+ - lib
237
+ required_ruby_version: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ required_rubygems_version: !ruby/object:Gem::Requirement
243
+ requirements:
244
+ - - ">="
245
+ - !ruby/object:Gem::Version
246
+ version: '0'
247
+ requirements: []
248
+ rubyforge_project:
249
+ rubygems_version: 2.7.6
250
+ signing_key:
251
+ specification_version: 4
252
+ summary: A gem for making the generation of OpenFlow network rules easier.
253
+ test_files: []