junos-ez-stdlib 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjZiNjRhZDYwMmQ4N2IxODdhOGM1YzUyNzY4M2Q5MmNkM2JjOTAxZQ==
5
+ data.tar.gz: !binary |-
6
+ YTA1YzNjNWE4OTgyNTg2M2JkNGFkMzhjMGQ3OWY5MzA1Mjg3ZTA4Nw==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ NTAxYTA0NTU3Y2RjMDg3ZWU0NTExYjVkNDdjOGJhMDdhNTg5Nzg3NDg5Yzc2
10
+ Y2E4OTlkZmY2ZmNjNjRmZGFmOTQxOTMyMTVhYmExYjczZWZkZWYwNGY2YWFl
11
+ OWVmZjEzZDJhZWFlYjcxNDI1M2VmOWVmMjY4ZDFkY2QwYWM1ZmE=
12
+ data.tar.gz: !binary |-
13
+ N2Y1NzgyYjE5MzYzYWQ4ZDliMWY3Zjg3MWVlNGIyNGE5YTU5NDExNzZjMDg4
14
+ YzU1NDliNmJjYTgwYzA2Y2UwMmNjZDMxNWU1ZGM0MjZhZDBmZDExYmU1YmZk
15
+ NTBhZGE4YjE5ZDRhZTk0ODE1ZGQ2Mzc0MmU3Y2E5NDM2OWJiYjQ=
@@ -52,3 +52,11 @@
52
52
  0.1.1: 2013-05-29
53
53
 
54
54
  Fixed a small bug in fact gathering for hardwaremodel
55
+
56
+ # 2013-July
57
+
58
+ 0.1.2: 2013-07-04
59
+
60
+ Fixed issue#3. Previously this gem would not work with non-VC capable EX switches. Updated
61
+ the `facts/version.rb` file to handle these devices. Also added a new fact `:vc_capable` that
62
+ is set to `true` if the EX can support virtual-chassis, and `false` if it cannot.
@@ -6,7 +6,18 @@ Junos::Ez::Facts::Keeper.define( :version ) do |ndev, facts|
6
6
  when :MX
7
7
  swver = ndev.rpc.command "show version invoke-on all-routing-engines"
8
8
  when :SWITCH
9
- swver = ndev.rpc.command "show version all-members"
9
+ ## most EX switches support the virtual-chassis feature, so the 'all-members' option would be valid
10
+ ## in some products, this options is not valid (i.e. not vc-capable. so we're going to try for vc, and if that
11
+ ## throws an exception we'll rever to non-VC
12
+
13
+ begin
14
+ swver = ndev.rpc.command "show version all-members"
15
+ rescue Netconf::RpcError
16
+ facts[:vc_capable] = false
17
+ swver = ndev.rpc.command "show version"
18
+ else
19
+ facts[:vc_capable] = true
20
+ end
10
21
  else
11
22
  swver = ndev.rpc.command "show version"
12
23
  end
@@ -10,12 +10,11 @@ require 'set'
10
10
  module Junos; end
11
11
  module Junos::Ez; end
12
12
 
13
+ require 'junos-ez/version.rb'
13
14
  require 'junos-ez/exceptions.rb'
14
15
 
15
16
  module Junos::Ez
16
17
 
17
- VERSION = "0.1.1"
18
-
19
18
  ### ---------------------------------------------------------------
20
19
  ### rpc_errors - decodes the XML into an array of error/Hash
21
20
  ### @@@ TBD: this should be moved into the 'netconf' gem
@@ -0,0 +1,3 @@
1
+ module Junos::Ez
2
+ VERSION = "0.1.2"
3
+ end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: junos-ez-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.1.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jeremy Schulman
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-29 00:00:00.000000000 Z
11
+ date: 2013-07-04 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: netconf
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ! '>='
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ! '>='
28
25
  - !ruby/object:Gem::Version
@@ -33,88 +30,88 @@ executables: []
33
30
  extensions: []
34
31
  extra_rdoc_files: []
35
32
  files:
33
+ - README.md
36
34
  - CHANGELOG.md
37
- - junos-ez-stdlib.gemspec
38
35
  - LICENSE
39
- - README.md
40
- - lib/junos-ez/exceptions.rb
41
- - lib/junos-ez/facts/chassis.rb
42
- - lib/junos-ez/facts/ifd_style.rb
43
- - lib/junos-ez/facts/personality.rb
44
- - lib/junos-ez/facts/switch_style.rb
45
- - lib/junos-ez/facts/version.rb
46
- - lib/junos-ez/facts.rb
47
- - lib/junos-ez/ip_ports/classic.rb
48
- - lib/junos-ez/ip_ports.rb
49
- - lib/junos-ez/l1_ports/classic.rb
50
- - lib/junos-ez/l1_ports/switch.rb
51
- - lib/junos-ez/l1_ports.rb
52
- - lib/junos-ez/l2_ports/bridge_domain.rb
53
- - lib/junos-ez/l2_ports/vlan.rb
54
- - lib/junos-ez/l2_ports/vlan_l2ng.rb
55
- - lib/junos-ez/l2_ports.rb
56
- - lib/junos-ez/provider.rb
36
+ - junos-ez-stdlib.gemspec
37
+ - lib/junos-ez/system.rb
38
+ - lib/junos-ez/vlans.rb
57
39
  - lib/junos-ez/stdlib.rb
58
- - lib/junos-ez/system/st_hosts.rb
40
+ - lib/junos-ez/utils/fs.rb
41
+ - lib/junos-ez/utils/config.rb
42
+ - lib/junos-ez/utils/re.rb
59
43
  - lib/junos-ez/system/st_routes.rb
60
44
  - lib/junos-ez/system/syscfg.rb
61
- - lib/junos-ez/system/userauths.rb
62
45
  - lib/junos-ez/system/users.rb
63
- - lib/junos-ez/system.rb
64
- - lib/junos-ez/utils/config.rb
65
- - lib/junos-ez/utils/fs.rb
66
- - lib/junos-ez/utils/re.rb
67
- - lib/junos-ez/vlans/bridge_domain.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
50
+ - 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
68
55
  - lib/junos-ez/vlans/vlan.rb
69
- - lib/junos-ez/vlans.rb
70
- - examples/config/config_file.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
+ - lib/junos-ez/facts/chassis.rb
60
+ - lib/junos-ez/facts/ifd_style.rb
61
+ - lib/junos-ez/facts/version.rb
62
+ - lib/junos-ez/exceptions.rb
63
+ - lib/junos-ez/l2_ports.rb
64
+ - lib/junos-ez/provider.rb
65
+ - lib/junos-ez/l2_ports/vlan.rb
66
+ - 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
71
70
  - examples/config/config_template_object.rb
72
71
  - examples/config/config_template_simple.rb
73
- - examples/config/multi_config.rb
72
+ - examples/config/config_file.rb
74
73
  - examples/fs_utils.rb
75
- - examples/re_upgrade.rb
76
- - examples/re_utils.rb
77
74
  - examples/simple.rb
75
+ - examples/re_upgrade.rb
78
76
  - examples/st_hosts.rb
79
77
  - examples/user.rb
80
- - examples/vlans.rb
81
- - docs/Facts.md
78
+ - examples/re_utils.rb
79
+ - docs/Providers_Resources.md
80
+ - docs/Providers/Vlans.md
81
+ - docs/Providers/StaticRoutes.md
82
82
  - docs/Providers/IPports.md
83
- - docs/Providers/L1ports.md
84
83
  - docs/Providers/L2ports.md
84
+ - docs/Providers/Users.md
85
85
  - docs/Providers/StaticHosts.md
86
- - docs/Providers/StaticRoutes.md
86
+ - docs/Providers/L1ports.md
87
87
  - docs/Providers/UserAuths.md
88
- - docs/Providers/Users.md
89
- - docs/Providers/Vlans.md
90
- - docs/Providers_Resources.md
91
- - docs/README_FIRST.md
92
- - docs/Utils/Config.md
88
+ - docs/Facts.md
93
89
  - docs/Utils/Filesystem.md
94
- - docs/Utils/Routing-Engine.md
95
90
  - docs/Utils/SCP.md
91
+ - docs/Utils/Routing-Engine.md
92
+ - docs/Utils/Config.md
93
+ - docs/README_FIRST.md
96
94
  homepage: https://github.com/jeremyschulman/ruby-junos-ez-stdlib
97
95
  licenses: []
96
+ metadata: {}
98
97
  post_install_message:
99
98
  rdoc_options: []
100
99
  require_paths:
101
100
  - lib
102
101
  required_ruby_version: !ruby/object:Gem::Requirement
103
- none: false
104
102
  requirements:
105
103
  - - ! '>='
106
104
  - !ruby/object:Gem::Version
107
105
  version: '0'
108
106
  required_rubygems_version: !ruby/object:Gem::Requirement
109
- none: false
110
107
  requirements:
111
108
  - - ! '>='
112
109
  - !ruby/object:Gem::Version
113
110
  version: '0'
114
111
  requirements: []
115
112
  rubyforge_project:
116
- rubygems_version: 1.8.23
113
+ rubygems_version: 2.0.3
117
114
  signing_key:
118
- specification_version: 3
115
+ specification_version: 4
119
116
  summary: Junos EZ Framework - Standard Libraries
120
117
  test_files: []