diff options
author | Saku Ytti <saku@ytti.fi> | 2014-07-04 10:02:20 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-07-04 10:02:20 +0300 |
commit | b3bec7b240640b1b6ca900bb3aab3659914783c0 (patch) | |
tree | 3e2d86e93efa780a60181f7f093d9113a2a21dfc /lib/oxidized/model/aosw.rb | |
parent | c8b9e5af6d38e73ffa830c7abc137021447cb6bc (diff) |
match node[:name] to ip
When running Oxidized via oxidized-script you want just one node, and
you specify that as Nodes.new(:node=>x) however as router.db usually
lacks 'ip' field, and only has 'name' field'.
If you have router.db with IP in 'name' field, and you do
Nodes.new(:node='192.0.2.1') it won't return anything, as '192.0.2.1' is
matched against node[:ip] which does not exist.
This change makes IP match against IP and Name.
Diffstat (limited to 'lib/oxidized/model/aosw.rb')
0 files changed, 0 insertions, 0 deletions