133 lines
3.0 KiB
YAML
133 lines
3.0 KiB
YAML
---
|
|
|
|
####
|
|
#### Interface table
|
|
####
|
|
|
|
junos_iface_table:
|
|
rpc: get-interface-information
|
|
args:
|
|
extensive: True
|
|
args_key: interface_name
|
|
item: physical-interface
|
|
view: junos_iface_view
|
|
|
|
junos_iface_view:
|
|
fields:
|
|
is_up: { oper-status: True=up }
|
|
is_enabled: { admin-status: True=up }
|
|
description: { description: unicode }
|
|
last_flapped: { interface-flapped/@seconds: int }
|
|
#mode: logical-interface/address-family/address-family-name
|
|
speed: speed
|
|
mac_address: current-physical-address
|
|
|
|
####
|
|
#### BGP tables
|
|
####
|
|
|
|
junos_route_instance_table:
|
|
rpc: get-instance-information
|
|
item: instance-core
|
|
key: instance-name
|
|
view: junos_route_instance_view
|
|
|
|
junos_route_instance_view:
|
|
fields:
|
|
name: instance-name
|
|
|
|
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
|
|
|
|
junos_bgp_view:
|
|
fields:
|
|
remote_as: { peer-as: int }
|
|
description: description
|
|
is_up: { peer-state: True=Established }
|
|
is_enabled: { peer-state: False=True }
|
|
received_prefixes: { bgp-rib/received-prefix-count: int }
|
|
accepted_prefixes: { bgp-rib/accepted-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
|
|
####
|
|
|
|
junos_lldp_table:
|
|
rpc: get-lldp-neighbors-information
|
|
item: lldp-neighbor-information
|
|
key: lldp-local-port-id | lldp-local-interface
|
|
view: junos_lldp_view
|
|
|
|
junos_lldp_view:
|
|
fields:
|
|
hostname: lldp-remote-system-name
|
|
port: lldp-remote-port-description | lldp-remote-port-id
|
|
|
|
|
|
|
|
####
|
|
#### Interface counters
|
|
####
|
|
|
|
junos_iface_counter_table:
|
|
rpc: get-interface-information
|
|
args:
|
|
extensive: True
|
|
interface_name: '[vmfgx][mle]*'
|
|
args_key: interface_name
|
|
item: physical-interface
|
|
view: junos_iface_counter_view
|
|
|
|
|
|
junos_iface_counter_view:
|
|
groups:
|
|
ts: traffic-statistics
|
|
rxerrs: input-error-list
|
|
txerrs: output-error-list
|
|
ethernet_traffic_types: ethernet-mac-statistics
|
|
|
|
|
|
# fields that are part of groups are called
|
|
# "fields_<group-name>"
|
|
fields_ethernet_traffic_types:
|
|
rx_broadcast_packets: { input-broadcasts: int }
|
|
tx_broadcast_packets: { output-broadcasts: int }
|
|
rx_unicast_packets: { input-unicasts: int }
|
|
tx_unicast_packets: { output-unicasts: int }
|
|
rx_multicast_packets: { input-multicasts: int }
|
|
tx_multicast_packets: { output-multicasts: int }
|
|
|
|
fields_ts:
|
|
rx_octets: { input-bytes: int }
|
|
tx_octets: { output-bytes: int }
|
|
|
|
fields_rxerrs:
|
|
rx_errors: { input-errors: int }
|
|
rx_discards: { input-discards: int }
|
|
|
|
fields_txerrs:
|
|
tx_errors: { output-errors: int }
|
|
tx_discards: { output-drops: int } |