opendaylight 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61f729235a06f2e6e4905f42ca1def6f9b61acdc
4
- data.tar.gz: a3682ac3179724b3a5d6a0cc0e31c123ff5deb60
3
+ metadata.gz: c299eb6bc65f3cb639a65617faacaa7bf293eb71
4
+ data.tar.gz: 12d74bfb24b1d28dc9b6a816af91a2e00f7de90b
5
5
  SHA512:
6
- metadata.gz: 7e20666828f2beb3ef7d8c9be3cafaa61feb12b18ddd596a8dc682bcd899a24de7d47d87da9f6fcda9ed0a0d0f6b1540a6c93d104f6de89eaa6b0b73908817d0
7
- data.tar.gz: bf077e4543ca15c12109ea1b70872a6d3f8fe649847910497b305c3980de17bc10912e57d4a3d84187a0ed4fa7ed267f56f5d1c459d96bdc6b82a8458216474c
6
+ metadata.gz: d36f1d1a1e53fc8a5d5f1d5b3114d904853c9fa3435bee7e34a03720854ea3b40ed9756ae24edbb00bd9edcebbd7b32c26d944b102ad9b3846c182d536d8c80f
7
+ data.tar.gz: 448e7ef9036467607022191b6f6e5eb8c848452add04774dceb839732ad21e432becca23ed957079e33933f83a6f4a425e6e2aa0b08eb49342bce3a26eaf2b52
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Opendaylight
2
2
 
3
- This gem is made as a ruby wrapper for OpenDaylight's FlowProgrammer api
3
+ This gem is made as a ruby wrapper for API's FlowProgrammer api
4
4
 
5
5
  ## Installation
6
6
 
@@ -26,11 +26,11 @@ Configure with an initializer in config/initializers as follows:
26
26
  config.url = "http://yourserver.com:port/"
27
27
  end
28
28
 
29
- Then make a call to Opendaylight's OpenDaylight.makeflow:
29
+ Then make a call to Opendaylight's API.makeflow:
30
30
 
31
31
  For example:
32
32
 
33
- Opendaylight::OpenDaylight.makeflow(id: "00:00:00:00:00:00:00:02", name: "flow1", actions: "DROP")
33
+ Opendaylight::API.makeflow(id: "00:00:00:00:00:00:00:02", name: "flow1", actions: "DROP")
34
34
 
35
35
  Here are the possible arguments for makeflow. All the arguments default to nil unless otherwise specified:
36
36
 
@@ -93,7 +93,7 @@ SW_PATH
93
93
 
94
94
  To get your topology, use Opendaylight.topology:
95
95
 
96
- Opendaylight::OpenDaylight.topology
96
+ Opendaylight::API.topology
97
97
 
98
98
  This returns a hash of all the edges (links). The hash is organized as follows (I have capitalized things that will come back as variables):
99
99
 
data/lib/opendaylight.rb CHANGED
@@ -19,7 +19,7 @@ module Opendaylight
19
19
  yield(configuration) if block_given?
20
20
  end
21
21
 
22
- class OpenDaylight
22
+ class API
23
23
  def self.makeflow(tpSrc: nil, protocol: "6", vlanId: nil, id: nil, type: "OF", vlanPriority: nil, idleTimeout: nil, priority: nil, ingressPort: nil, tosBits: nil, name: nil, hardTimeout: nil, dlDst: nil, installInHW: "true", etherType: "0x800", actions: nil, cookie: nil, dlSrc: nil, nwSrc: nil, nwDst: nil, tpDst: nil, username: Opendaylight.configuration.username, password: Opendaylight.configuration.password, url: Opendaylight.configuration.url, containerName: "default")
24
24
  auth = {username: username, password: password}
25
25
  options = {
@@ -1,3 +1,3 @@
1
1
  module Opendaylight
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opendaylight
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rickpr