Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
Display all routing-policies in sequential order for a selected BGP peer. This applies to SLAX version 1.0 and higher.
This script provides an easy way to study the complete policy chain of a BGP peer. With multiple BGP policies in an import or export policy chain, it can become troublesome to determine what action will be taken for a particular prefix because the policies will usually not appear in the desired order within the policy-options hierarchy in the configuration.
The configuration text for each policy in the policy chain for the selected peer is extracted by the script and then displayed to the console in the correct sequential order. Through use of this op script, a user can easily read the complete policy chain from start to finish.
Three are three command-line arguments:
Minimum Junos Version: 8.2Latest Script Version: 1.0MD5 Checksum: 4b830f1cc024657d621d0668e4af092fSHA-256 Checksum: 963dd0f98f7f15d8728343b77d37e07b202362a7c8f682c464600fefeec86787
The source code below is also available from GitHub at the following locations:
[edit protocols bgp group test]