Skip to content

Onit add

onit add

Add resources to the cluster

Synopsis

Add resources to the cluster

Examples

        # Add a simulator with a given name to "onos" cluster
        onit add simulator -n simulator-1

        # Add a simulator with a random name to a specific cluster
        onit add simulator -c my-cluster

        # Add a network of stratum switches that emulates a linear network topology with two nodes
        onit add network -n stratum-linear --topo linear --devices 2

        # Add latest version of an application
        onit add app -n onos-ztp -i onosproject/onos-ztp:latest -u 0 -p grpc=5150 -r 2 -s /certs/onf.cacrt=configs/certs/onf.cacrt -s /certs/onos-ztp.crt=configs/certs/service.crt -s /certs/onos-ztp.key=configs/certs/service.key -- -caPath=/certs/onf.cacrt -keyPath=/certs/onos-ztp.key -certPath=/certs/onos-ztp.crt --image-pull-policy "Always" 

Options

  -h, --help   help for add

Options inherited from parent commands

  -c, --cluster string   the cluster on which to execute the command
  -v, --verbose          Enable verbose output

SEE ALSO

Auto generated by spf13/cobra on 11-Dec-2019