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 +4 -4
- data/README.md +4 -4
- data/lib/opendaylight.rb +1 -1
- data/lib/opendaylight/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c299eb6bc65f3cb639a65617faacaa7bf293eb71
|
4
|
+
data.tar.gz: 12d74bfb24b1d28dc9b6a816af91a2e00f7de90b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
29
|
+
Then make a call to Opendaylight's API.makeflow:
|
30
30
|
|
31
31
|
For example:
|
32
32
|
|
33
|
-
Opendaylight::
|
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::
|
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
|
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 = {
|
data/lib/opendaylight/version.rb
CHANGED