Search
Varnish Controller

vcli asnroutes

Handle ASN routing targets

Synopsis

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 ~. Can be used to set priority between tags on the same ASN. For example: –asn=9993:1~1,9993:2~2 - Will give nodes with tag ID: 2 higher priority than tag ID: 1 for clients within ASN: 9993 because the weight: 2 is higher.

Options

  -h, --help   help for asnroutes

Options inherited from parent commands

  -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.

SEE ALSO


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203