junos-ez-stdlib 0.1.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +6 -14
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +8 -0
  5. data/.travis.yml +18 -0
  6. data/CHANGELOG.md +60 -19
  7. data/Gemfile +7 -0
  8. data/README.md +41 -30
  9. data/Rakefile +6 -0
  10. data/SUGGESTION-BOX/README.md +32 -0
  11. data/docs/Providers/Group.md +61 -0
  12. data/docs/Providers/L2ports.md +1 -1
  13. data/docs/Providers/LAGports.md +57 -0
  14. data/docs/Providers/Vlans.md +1 -1
  15. data/examples/config/config_file.rb +0 -0
  16. data/examples/config/config_template_object.rb +0 -0
  17. data/examples/config/config_template_simple.rb +0 -0
  18. data/examples/config/load_sample.conf +129 -0
  19. data/examples/config/load_sample.set +3 -0
  20. data/examples/config/load_template_main.conf +7 -0
  21. data/examples/config/load_template_object.conf +7 -0
  22. data/examples/config/multi_config.rb +0 -0
  23. data/examples/fs_utils.rb +0 -0
  24. data/examples/lag_port.rb +27 -0
  25. data/examples/re_upgrade.rb +0 -0
  26. data/examples/re_utils.rb +0 -0
  27. data/examples/simple.rb +0 -1
  28. data/examples/st_hosts.rb +0 -0
  29. data/examples/user.rb +0 -0
  30. data/examples/vlans.rb +4 -4
  31. data/junos-ez-stdlib.gemspec +25 -14
  32. data/lib/junos-ez/exceptions.rb +0 -0
  33. data/lib/junos-ez/facts.rb +5 -7
  34. data/lib/junos-ez/facts/chassis.rb +6 -0
  35. data/lib/junos-ez/facts/ifd_style.rb +6 -3
  36. data/lib/junos-ez/facts/personality.rb +6 -6
  37. data/lib/junos-ez/facts/switch_style.rb +11 -2
  38. data/lib/junos-ez/facts/version.rb +24 -9
  39. data/lib/junos-ez/group.rb +206 -0
  40. data/lib/junos-ez/ip_ports.rb +0 -0
  41. data/lib/junos-ez/ip_ports/classic.rb +2 -2
  42. data/lib/junos-ez/l1_ports.rb +0 -0
  43. data/lib/junos-ez/l1_ports/classic.rb +0 -0
  44. data/lib/junos-ez/l1_ports/switch.rb +0 -0
  45. data/lib/junos-ez/l2_ports.rb +18 -9
  46. data/lib/junos-ez/l2_ports/bridge_domain.rb +499 -0
  47. data/lib/junos-ez/l2_ports/vlan.rb +3 -3
  48. data/lib/junos-ez/l2_ports/vlan_l2ng.rb +502 -0
  49. data/lib/junos-ez/lag_ports.rb +268 -0
  50. data/lib/junos-ez/provider.rb +4 -8
  51. data/lib/junos-ez/stdlib.rb +2 -0
  52. data/lib/junos-ez/system.rb +0 -0
  53. data/lib/junos-ez/system/users.rb +5 -7
  54. data/lib/junos-ez/utils/config.rb +0 -0
  55. data/lib/junos-ez/utils/fs.rb +0 -0
  56. data/lib/junos-ez/utils/re.rb +0 -0
  57. data/lib/junos-ez/version.rb +4 -1
  58. data/lib/junos-ez/vlans.rb +4 -1
  59. data/lib/junos-ez/vlans/bridge_domain.rb +7 -3
  60. data/lib/junos-ez/vlans/vlan.rb +4 -3
  61. data/lib/junos-ez/vlans/vlan_l2ng.rb +126 -0
  62. metadata +142 -64
metadata CHANGED
@@ -1,98 +1,176 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: junos-ez-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Schulman
8
+ - John Deatherage
9
+ - Nitin Kumar
10
+ - Priyal Jain
11
+ - Ganesh Nalawade
8
12
  autorequire:
9
13
  bindir: bin
10
14
  cert_chain: []
11
- date: 2013-07-04 00:00:00.000000000 Z
15
+ date: 2016-08-02 00:00:00.000000000 Z
12
16
  dependencies:
13
17
  - !ruby/object:Gem::Dependency
14
18
  name: netconf
15
19
  requirement: !ruby/object:Gem::Requirement
16
20
  requirements:
17
- - - ! '>='
21
+ - - "~>"
18
22
  - !ruby/object:Gem::Version
19
- version: 0.2.5
23
+ version: 0.3.1
20
24
  type: :runtime
21
25
  prerelease: false
22
26
  version_requirements: !ruby/object:Gem::Requirement
23
27
  requirements:
24
- - - ! '>='
28
+ - - "~>"
25
29
  - !ruby/object:Gem::Version
26
- version: 0.2.5
27
- description: ! 'Automation Framework for Junos/NETCONF: Facts, Providers, and Utils'
28
- email: jschulman@juniper.net
30
+ version: 0.3.1
31
+ - !ruby/object:Gem::Dependency
32
+ name: bundler
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - "~>"
36
+ - !ruby/object:Gem::Version
37
+ version: '1.12'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - "~>"
43
+ - !ruby/object:Gem::Version
44
+ version: '1.12'
45
+ - !ruby/object:Gem::Dependency
46
+ name: rake
47
+ requirement: !ruby/object:Gem::Requirement
48
+ requirements:
49
+ - - "~>"
50
+ - !ruby/object:Gem::Version
51
+ version: '10.0'
52
+ type: :development
53
+ prerelease: false
54
+ version_requirements: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - "~>"
57
+ - !ruby/object:Gem::Version
58
+ version: '10.0'
59
+ - !ruby/object:Gem::Dependency
60
+ name: rspec
61
+ requirement: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - "~>"
64
+ - !ruby/object:Gem::Version
65
+ version: '3.0'
66
+ type: :development
67
+ prerelease: false
68
+ version_requirements: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - "~>"
71
+ - !ruby/object:Gem::Version
72
+ version: '3.0'
73
+ - !ruby/object:Gem::Dependency
74
+ name: rubocop
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - "~>"
78
+ - !ruby/object:Gem::Version
79
+ version: 0.42.0
80
+ type: :development
81
+ prerelease: false
82
+ version_requirements: !ruby/object:Gem::Requirement
83
+ requirements:
84
+ - - "~>"
85
+ - !ruby/object:Gem::Version
86
+ version: 0.42.0
87
+ description: 'Automation Framework for Junos/NETCONF: Facts, Providers, and Utils'
88
+ email: jnpr-community-netdev@juniper.net
29
89
  executables: []
30
90
  extensions: []
31
91
  extra_rdoc_files: []
32
92
  files:
33
- - README.md
93
+ - ".gitignore"
94
+ - ".rspec"
95
+ - ".rubocop.yml"
96
+ - ".travis.yml"
34
97
  - CHANGELOG.md
98
+ - Gemfile
35
99
  - LICENSE
100
+ - README.md
101
+ - Rakefile
102
+ - SUGGESTION-BOX/README.md
103
+ - docs/Facts.md
104
+ - docs/Providers/Group.md
105
+ - docs/Providers/IPports.md
106
+ - docs/Providers/L1ports.md
107
+ - docs/Providers/L2ports.md
108
+ - docs/Providers/LAGports.md
109
+ - docs/Providers/StaticHosts.md
110
+ - docs/Providers/StaticRoutes.md
111
+ - docs/Providers/UserAuths.md
112
+ - docs/Providers/Users.md
113
+ - docs/Providers/Vlans.md
114
+ - docs/Providers_Resources.md
115
+ - docs/README_FIRST.md
116
+ - docs/Utils/Config.md
117
+ - docs/Utils/Filesystem.md
118
+ - docs/Utils/Routing-Engine.md
119
+ - docs/Utils/SCP.md
120
+ - examples/config/config_file.rb
121
+ - examples/config/config_template_object.rb
122
+ - examples/config/config_template_simple.rb
123
+ - examples/config/load_sample.conf
124
+ - examples/config/load_sample.set
125
+ - examples/config/load_template_main.conf
126
+ - examples/config/load_template_object.conf
127
+ - examples/config/multi_config.rb
128
+ - examples/fs_utils.rb
129
+ - examples/lag_port.rb
130
+ - examples/re_upgrade.rb
131
+ - examples/re_utils.rb
132
+ - examples/simple.rb
133
+ - examples/st_hosts.rb
134
+ - examples/user.rb
135
+ - examples/vlans.rb
36
136
  - junos-ez-stdlib.gemspec
37
- - lib/junos-ez/system.rb
38
- - lib/junos-ez/vlans.rb
39
- - lib/junos-ez/stdlib.rb
40
- - lib/junos-ez/utils/fs.rb
41
- - lib/junos-ez/utils/config.rb
42
- - lib/junos-ez/utils/re.rb
43
- - lib/junos-ez/system/st_routes.rb
44
- - lib/junos-ez/system/syscfg.rb
45
- - lib/junos-ez/system/users.rb
46
- - lib/junos-ez/system/st_hosts.rb
47
- - lib/junos-ez/system/userauths.rb
48
- - lib/junos-ez/ip_ports.rb
49
- - lib/junos-ez/ip_ports/classic.rb
137
+ - lib/junos-ez/exceptions.rb
50
138
  - lib/junos-ez/facts.rb
51
- - lib/junos-ez/version.rb
52
- - lib/junos-ez/l1_ports.rb
53
- - lib/junos-ez/l1_ports/switch.rb
54
- - lib/junos-ez/l1_ports/classic.rb
55
- - lib/junos-ez/vlans/vlan.rb
56
- - lib/junos-ez/vlans/bridge_domain.rb
57
- - lib/junos-ez/facts/switch_style.rb
58
- - lib/junos-ez/facts/personality.rb
59
139
  - lib/junos-ez/facts/chassis.rb
60
140
  - lib/junos-ez/facts/ifd_style.rb
141
+ - lib/junos-ez/facts/personality.rb
142
+ - lib/junos-ez/facts/switch_style.rb
61
143
  - lib/junos-ez/facts/version.rb
62
- - lib/junos-ez/exceptions.rb
144
+ - lib/junos-ez/group.rb
145
+ - lib/junos-ez/ip_ports.rb
146
+ - lib/junos-ez/ip_ports/classic.rb
147
+ - lib/junos-ez/l1_ports.rb
148
+ - lib/junos-ez/l1_ports/classic.rb
149
+ - lib/junos-ez/l1_ports/switch.rb
63
150
  - lib/junos-ez/l2_ports.rb
64
- - lib/junos-ez/provider.rb
151
+ - lib/junos-ez/l2_ports/bridge_domain.rb
65
152
  - lib/junos-ez/l2_ports/vlan.rb
66
153
  - lib/junos-ez/l2_ports/vlan_l2ng.rb
67
- - lib/junos-ez/l2_ports/bridge_domain.rb
68
- - examples/vlans.rb
69
- - examples/config/multi_config.rb
70
- - examples/config/config_template_object.rb
71
- - examples/config/config_template_simple.rb
72
- - examples/config/config_file.rb
73
- - examples/fs_utils.rb
74
- - examples/simple.rb
75
- - examples/re_upgrade.rb
76
- - examples/st_hosts.rb
77
- - examples/user.rb
78
- - examples/re_utils.rb
79
- - docs/Providers_Resources.md
80
- - docs/Providers/Vlans.md
81
- - docs/Providers/StaticRoutes.md
82
- - docs/Providers/IPports.md
83
- - docs/Providers/L2ports.md
84
- - docs/Providers/Users.md
85
- - docs/Providers/StaticHosts.md
86
- - docs/Providers/L1ports.md
87
- - docs/Providers/UserAuths.md
88
- - docs/Facts.md
89
- - docs/Utils/Filesystem.md
90
- - docs/Utils/SCP.md
91
- - docs/Utils/Routing-Engine.md
92
- - docs/Utils/Config.md
93
- - docs/README_FIRST.md
94
- homepage: https://github.com/jeremyschulman/ruby-junos-ez-stdlib
95
- licenses: []
154
+ - lib/junos-ez/lag_ports.rb
155
+ - lib/junos-ez/provider.rb
156
+ - lib/junos-ez/stdlib.rb
157
+ - lib/junos-ez/system.rb
158
+ - lib/junos-ez/system/st_hosts.rb
159
+ - lib/junos-ez/system/st_routes.rb
160
+ - lib/junos-ez/system/syscfg.rb
161
+ - lib/junos-ez/system/userauths.rb
162
+ - lib/junos-ez/system/users.rb
163
+ - lib/junos-ez/utils/config.rb
164
+ - lib/junos-ez/utils/fs.rb
165
+ - lib/junos-ez/utils/re.rb
166
+ - lib/junos-ez/version.rb
167
+ - lib/junos-ez/vlans.rb
168
+ - lib/junos-ez/vlans/bridge_domain.rb
169
+ - lib/junos-ez/vlans/vlan.rb
170
+ - lib/junos-ez/vlans/vlan_l2ng.rb
171
+ homepage: https://github.com/Juniper/ruby-junos-ez-stdlib
172
+ licenses:
173
+ - BSD-2-Clause
96
174
  metadata: {}
97
175
  post_install_message:
98
176
  rdoc_options: []
@@ -100,17 +178,17 @@ require_paths:
100
178
  - lib
101
179
  required_ruby_version: !ruby/object:Gem::Requirement
102
180
  requirements:
103
- - - ! '>='
181
+ - - ">="
104
182
  - !ruby/object:Gem::Version
105
183
  version: '0'
106
184
  required_rubygems_version: !ruby/object:Gem::Requirement
107
185
  requirements:
108
- - - ! '>='
186
+ - - ">="
109
187
  - !ruby/object:Gem::Version
110
188
  version: '0'
111
189
  requirements: []
112
190
  rubyforge_project:
113
- rubygems_version: 2.0.3
191
+ rubygems_version: 2.5.1
114
192
  signing_key:
115
193
  specification_version: 4
116
194
  summary: Junos EZ Framework - Standard Libraries