Merge pull request #91 from tehhobbit/base_new_methods

get_bgp_neighbor
This commit is contained in:
David Barroso committed 2015-12-01 10:38:06 +01:00
commit 0668f8181b
1 file changed
+22 -4
+22 -4
View File
@@ -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
@@ -112,4 +130,4 @@ junos_iface_counter_view:
fields_txerrs:
tx_errors: { output-errors: int }
tx_discards: { output-drops: int }
tx_discards: { output-drops: int }