Handle ASN routing targets
Handle ASN routing targets, such as listing, add, delete or update.
Examples:
vcli asnroutes list
vcli asnroutes ls -f id=1
vcli asnroutes ls -f name="MyASNRoute*"
vcli asnroutes add myASNRoute --reject --asn=8997,9993
vcli asnroutes add myASNRoute --asn=8997:1,9993:2
vcli asnroutes add myASNRoute --asn=8997:1~2,9993:2~3 --subdecision=weight (~<number> represents weight(optional))
vcli asnroutes add myASNRoute --asn-csv=my_asns.csv
vcli asnroutes update 1 --name newname
vcli asnroutes delete 1
vcli asnroutes inspect 1
CSV: Note: For reject, only ASN is required.
Fields(csv line):
ASN,Tag ID,weight(optional)
Examples:
9991,1,3
9991,2,4
9993,1,5
Weights:
Represented by
-h, --help help for asnroutes
-c, --config string configuration file for the CLI (default ~/.vcli.yml)
Could also be set via VARNISH_CONTROLLER_CLI_CONFIG=/path/to/config.yml
--csv Output the response table as CSV format.
-j, --json Output the response table as JSON format.