# Modify Layer policy

# usage

Usage: oredge layer-policy modify [id] [OPTIONS]

OPTIONS:
    --id integer                       id.
    --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. modify layer policy.
# oredge layer-policy modify 3 --rule '{"gateway":1, "upstream":2}'
OK