Search

vcli asnroutes

Handle ASN routing targets

Synopsis

Handle ASN routing targets, such as listing, add, delete or update.

Examples:

 asnroutes list
 asnroutes ls -f id=1
 asnroutes ls -f name="MyASNRoute*"
 asnroutes add myASNRoute --reject --asn=8997,9993
 asnroutes add myASNRoute --asn=8997:1,9993:2
 asnroutes add myASNRoute --asn=8997:1~2,9993:2~3 --subdecision=weight (~<number> represents weight(optional))
 asnroutes add myASNRoute --asn-csv=my_asns.csv
 asnroutes update 1 --name newname
 asnroutes delete 1
 asnroutes inspect 1

CSV:
    Note: For reject, only ASN is required.

	Fields(csv line):
	  ASN,Tag ID,weight(optional)

	Example:
	  9991,1,3
	  9991,2,4
	  9993,1,5

Weights:
	Represented by <Tag ID>~<weight>. 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