Wildcard characters in monitored URIs
The URI passed to the
Monitor
function can contain the asterisk (*
) wildcard character instead of a component in the URI path. You can use wildcard characters in multiple places in the path. You cannot use a wildcard character as part of the query string.
The wildcard character must replace the entire component in the path. For example, you can use a wildcard to specify all VRFs, but you cannot use a wildcard character to specify all VRFs that begin with the letter
r
.
For example, the following
Monitor
function monitors the connection state of all BGP neighbors belonging to all BGP routers in the "red" VRF:
self.monitor = Monitor("/system/vrfs/red/bgp_routers/*/
bgp_neighbors/*?attributes=conn_state",
name="BGP Neighbor Connection State")