# Create Layer-policy

# usage

Usage: oredge layer-policy create [OPTIONS]

OPTIONS:
    --name string                      name.
    --rule json                        rule.
        gateway integer                gateway.
        upstream integer               upstream.
        backup integer                 backup.

GLOBAL OPTIONS:
    --help
    --show-api                         print restful api request.
    --json                             print json format.
    --config                           specify config file, default is ~/.oredge/config.

# example

  1. create layer policy.
# oredge layer-policy create --name test --rule '{"gateway":1, "upstream":2}'
ID: 1