summaryrefslogtreecommitdiff
path: root/lib/oxidized/string.rb
diff options
context:
space:
mode:
authorSaku Ytti <saku@ytti.fi>2014-07-04 10:02:20 +0300
committerSaku Ytti <saku@ytti.fi>2014-07-04 10:02:20 +0300
commitb3bec7b240640b1b6ca900bb3aab3659914783c0 (patch)
tree3e2d86e93efa780a60181f7f093d9113a2a21dfc /lib/oxidized/string.rb
parentc8b9e5af6d38e73ffa830c7abc137021447cb6bc (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/string.rb')
0 files changed, 0 insertions, 0 deletions