Merge pull request #91 from tehhobbit/base_new_methods
get_bgp_neighbor
This commit is contained in:
commit
0668f8181b
1 file changed
+22
-4
+22
-4
@@ -36,9 +36,23 @@ junos_route_instance_view:
|
|||||||
fields:
|
fields:
|
||||||
name: instance-name
|
name: instance-name
|
||||||
|
|
||||||
junos_bgp_table:
|
junos_bgp_uptime_table:
|
||||||
rpc: get-bgp-summary-information
|
rpc: get-bgp-summary-information
|
||||||
|
args:
|
||||||
|
instance: ''
|
||||||
item: bgp-peer
|
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
|
key: peer-address
|
||||||
view: junos_bgp_view
|
view: junos_bgp_view
|
||||||
|
|
||||||
@@ -48,10 +62,14 @@ junos_bgp_view:
|
|||||||
description: description
|
description: description
|
||||||
is_up: { peer-state: True=Established }
|
is_up: { peer-state: True=Established }
|
||||||
is_enabled: { peer-state: False=True }
|
is_enabled: { peer-state: False=True }
|
||||||
uptime: { elapsed-time/@seconds: int }
|
|
||||||
received_prefixes: { bgp-rib/received-prefix-count: int }
|
received_prefixes: { bgp-rib/received-prefix-count: int }
|
||||||
accepted_prefixes: { bgp-rib/accepted-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
|
#### LLDP table
|
||||||
@@ -112,4 +130,4 @@ junos_iface_counter_view:
|
|||||||
|
|
||||||
fields_txerrs:
|
fields_txerrs:
|
||||||
tx_errors: { output-errors: int }
|
tx_errors: { output-errors: int }
|
||||||
tx_discards: { output-drops: int }
|
tx_discards: { output-drops: int }
|
||||||
Reference in new issue
Block a user