Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

Commit 6bc333a

Browse files
Hot Generator initial commit
1 parent 720ebb2 commit 6bc333a

31 files changed

+1016
-0
lines changed

hot-generator/.ruby-gemset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
orchestrator_hot-generator

hot-generator/.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby-2.1.5

hot-generator/.yardoc/checksums

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
main.rb 879e4149a4373e0b7ebc101cb8e30a5d63419ca0
2+
helpers/hot.rb 78058431420e4b99d081de6edebd5ff4424d16b3
3+
routes/hot.rb 692a06cd5999db8ed61b681f67cddd8b9fc13d4e
4+
models/floating_ip.rb 76cea665f7b4b0cffdfa346139ef71229cba4ebe
5+
models/hot.rb 1feab485b0c5deea83fcb413c47e57a2e13ca735
6+
models/net.rb 9de3e16545d21f53096b4c85153d86920f4eea63
7+
models/port.rb 57398365271684c6642f8375b97182596ecb2ef3
8+
models/resource.rb 1df67e0b9af5269638059502610b2d67a9c99568
9+
models/router_interface.rb b2555ad7631134d97b16f052f210f8079f35a8ed
10+
models/router.rb 2696162a001a26223ba53114aa2cc5f6cf47a83e
11+
models/server.rb 2f593f30458a8e2ad5b75d650481460da9baf493
12+
models/subnet.rb c45aad2b8f309febde2fc73c1b46e5172b3feaab
13+
models/vnfd_to_hot.rb ee8fbda2dd8b7a1cfedc24cf3b6e8242258ceca3

hot-generator/.yardoc/object_types

739 Bytes
Binary file not shown.
17.3 KB
Binary file not shown.

hot-generator/.yardoc/proxy_types

4 Bytes
Binary file not shown.

hot-generator/Gemfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'sinatra', '~>1.4'
4+
gem 'thin', '~>1.6'
5+
gem 'json', '~>1.8'
6+
gem 'sinatra-contrib', '~>1.4'
7+
gem 'nokogiri', '~>1.6'
8+
gem 'json-schema', '~>2.5'
9+
gem 'rest-client', '~>1.8'
10+
gem 'logstash-logger'
11+
12+
# Gatekeeper auth gem
13+
gem 'sinatra-gkauth', '~>0.2.0', path: '../sinatra-gkauth-gem'
14+
15+
group :development do
16+
gem 'rerun'
17+
end
18+
19+
group :doc do
20+
gem 'yard', '~>0.8'
21+
end

hot-generator/Gemfile.lock

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
PATH
2+
remote: ../sinatra-gkauth-gem
3+
specs:
4+
sinatra-gkauth (0.2.0)
5+
sinatra (~> 1.4)
6+
7+
GEM
8+
remote: https://rubygems.org/
9+
specs:
10+
addressable (2.3.7)
11+
backports (3.6.4)
12+
celluloid (0.16.0)
13+
timers (~> 4.0.0)
14+
daemons (1.2.2)
15+
domain_name (0.5.23)
16+
unf (>= 0.0.5, < 1.0.0)
17+
eventmachine (1.0.7)
18+
ffi (1.9.8)
19+
hitimes (1.2.2)
20+
http-cookie (1.0.2)
21+
domain_name (~> 0.5)
22+
json (1.8.2)
23+
json-schema (2.5.1)
24+
addressable (~> 2.3.7)
25+
listen (2.10.0)
26+
celluloid (~> 0.16.0)
27+
rb-fsevent (>= 0.9.3)
28+
rb-inotify (>= 0.9)
29+
logstash-event (1.2.02)
30+
logstash-logger (0.15.2)
31+
logstash-event (~> 1.2)
32+
stud
33+
mime-types (2.4.3)
34+
mini_portile (0.6.2)
35+
multi_json (1.11.0)
36+
netrc (0.10.3)
37+
nokogiri (1.6.6.2)
38+
mini_portile (~> 0.6.0)
39+
rack (1.6.0)
40+
rack-protection (1.5.3)
41+
rack
42+
rack-test (0.6.3)
43+
rack (>= 1.0)
44+
rb-fsevent (0.9.4)
45+
rb-inotify (0.9.5)
46+
ffi (>= 0.5.0)
47+
rerun (0.10.0)
48+
listen (~> 2.7, >= 2.7.3)
49+
rest-client (1.8.0)
50+
http-cookie (>= 1.0.2, < 2.0)
51+
mime-types (>= 1.16, < 3.0)
52+
netrc (~> 0.7)
53+
sinatra (1.4.6)
54+
rack (~> 1.4)
55+
rack-protection (~> 1.4)
56+
tilt (>= 1.3, < 3)
57+
sinatra-contrib (1.4.2)
58+
backports (>= 2.0)
59+
multi_json
60+
rack-protection
61+
rack-test
62+
sinatra (~> 1.4.0)
63+
tilt (~> 1.3)
64+
stud (0.0.22)
65+
thin (1.6.3)
66+
daemons (~> 1.0, >= 1.0.9)
67+
eventmachine (~> 1.0)
68+
rack (~> 1.0)
69+
tilt (1.4.1)
70+
timers (4.0.1)
71+
hitimes
72+
unf (0.1.4)
73+
unf_ext
74+
unf_ext (0.0.6)
75+
yard (0.8.7.6)
76+
77+
PLATFORMS
78+
ruby
79+
80+
DEPENDENCIES
81+
json (~> 1.8)
82+
json-schema (~> 2.5)
83+
logstash-logger
84+
nokogiri (~> 1.6)
85+
rerun
86+
rest-client (~> 1.8)
87+
sinatra (~> 1.4)
88+
sinatra-contrib (~> 1.4)
89+
sinatra-gkauth (~> 0.2.0)!
90+
thin (~> 1.6)
91+
yard (~> 0.8)

hot-generator/LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
TeNOR - HOT Generator
2+
3+
Copyright 2014-2016 i2CAT Foundation, Portugal Telecom Inovação
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.

hot-generator/README.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# T-NOVA WP3
2+
3+
## Orchestrator HOT Generator
4+
5+
### Requirements
6+
7+
This code has been run on Ruby 2.1.
8+
9+
### Gems used
10+
11+
* [Sinatra](http://www.sinatrarb.com/) - Ruby framework
12+
* [Thin](https://github.com/macournoyer/thin/) - Web server
13+
* [json](https://github.com/flori/json) - JSON specification
14+
* [sinatra-contrib](https://github.com/sinatra/sinatra-contrib) - Sinatra extensions
15+
* [Nokogiri](https://github.com/sparklemotion/nokogiri) - XML parser
16+
* [JSON-schema](https://github.com/ruby-json-schema/json-schema) - JSON schema validator
17+
* [Rest-client](https://github.com/rest-client/rest-client) - HTTP and REST client
18+
* [Yard](https://github.com/lsegal/yard) - Documentation generator tool
19+
* [rerun](https://github.com/alexch/rerun) - Restarts the app when a file changes (used in development environment)
20+
21+
### Installation
22+
23+
After you cloned the source from the repository, you can run
24+
25+
```sh
26+
bundle install
27+
```
28+
29+
Which will install all the gems.
30+
31+
### Tests
32+
33+
TODO
34+
35+
### API Documentation
36+
37+
The API is documented with yardoc and can be built with a rake task:
38+
39+
```sh
40+
rake yard
41+
```
42+
43+
from here you can use the yard server to browse the docs from the source root:
44+
45+
```sh
46+
yard server
47+
```
48+
49+
and they can be viewed from http://localhost:8808/
50+
51+
### Run Server
52+
53+
The following shows how to start the API server:
54+
55+
```sh
56+
rake start
57+
```

0 commit comments

Comments
 (0)