onering-report-plugins 0.0.46 → 0.0.47
Sign up to get free protection for your applications and to get access to all the features.
@@ -25,13 +25,14 @@ report do
|
|
25
25
|
|
26
26
|
# LLDP autodiscovery
|
27
27
|
switch = {
|
28
|
-
:name
|
29
|
-
:port
|
30
|
-
:port_name
|
31
|
-
:port_mac
|
32
|
-
:ip
|
33
|
-
:chassis_mac
|
34
|
-
:
|
28
|
+
:name => Facter.value("lldp_switch_#{iface}"),
|
29
|
+
:port => Facter.value("lldp_port_#{iface}"),
|
30
|
+
:port_name => Facter.value("lldp_port_name_#{iface}"),
|
31
|
+
:port_mac => Facter.value("lldp_port_mac_#{iface}"),
|
32
|
+
:ip => Facter.value("lldp_management_ip_#{iface}"),
|
33
|
+
:chassis_mac => Facter.value("lldp_chassis_mac_#{iface}"),
|
34
|
+
:vlan => Facter.value("lldp_vlan_#{iface}"),
|
35
|
+
:tagged_vlans => Facter.value("lldp_tagged_vlans_#{iface}")
|
35
36
|
}.reject{|k,v| v === nil }
|
36
37
|
|
37
38
|
|