get_environment for Junos
This commit is contained in:
commit
f02bfbc2f0
20 files changed
+1190
-51
No files matched your search
+25
-5
@@ -16,7 +16,7 @@ junos_iface_view:
|
||||
fields:
|
||||
is_up: { oper-status: True=up }
|
||||
is_enabled: { admin-status: True=up }
|
||||
description: description
|
||||
description: { description: unicode }
|
||||
last_flapped: { interface-flapped/@seconds: int }
|
||||
#mode: logical-interface/address-family/address-family-name
|
||||
speed: speed
|
||||
@@ -36,9 +36,23 @@ junos_route_instance_view:
|
||||
fields:
|
||||
name: instance-name
|
||||
|
||||
junos_bgp_table:
|
||||
junos_bgp_uptime_table:
|
||||
rpc: get-bgp-summary-information
|
||||
args:
|
||||
instance: ''
|
||||
item: bgp-peer
|
||||
key: peer-address
|
||||
view: junos_bgp_uptime_view
|
||||
|
||||
junos_bgp_uptime_view:
|
||||
fields:
|
||||
uptime: { elapsed-time/@seconds: int }
|
||||
tables: bgp-rib/name
|
||||
|
||||
junos_bgp_table:
|
||||
rpc: get-bgp-neighbor-information
|
||||
item: bgp-peer
|
||||
|
||||
key: peer-address
|
||||
view: junos_bgp_view
|
||||
|
||||
@@ -48,10 +62,14 @@ junos_bgp_view:
|
||||
description: description
|
||||
is_up: { peer-state: True=Established }
|
||||
is_enabled: { peer-state: False=True }
|
||||
uptime: { elapsed-time/@seconds: int }
|
||||
received_prefixes: { bgp-rib/received-prefix-count: int }
|
||||
accepted_prefixes: { bgp-rib/accepted-prefix-count: int }
|
||||
sent_prefixes: { bgp-rib/aadvertised-prefix-count: int }
|
||||
sent_prefixes: { bgp-rib/advertised-prefix-count: int }
|
||||
tables: bgp-rib/name
|
||||
local_as: { local-as: int }
|
||||
peer_as: { peer-as: int }
|
||||
local_id: local-id
|
||||
remote_id: peer-id
|
||||
|
||||
####
|
||||
#### LLDP table
|
||||
@@ -151,4 +169,6 @@ junos_temperature_thresholds_view:
|
||||
fields:
|
||||
name: name
|
||||
yellow-alarm: { yellow-alarm: int }
|
||||
red-alarm: { red-alarm: int }
|
||||
red-alarm: { red-alarm: int }
|
||||
tx_discards: { output-drops: int }
|
||||
|
||||
Reference in new issue
Block a user