network interface service-policy clone

Contributors

Clone an existing network service policy

Availability: This command is available to cluster administrators at the advanced privilege level.

Description

The network interface service-policy clone command creates a new service policy that includes the same services and allowed addresses as an existing policy. Once the new service policy has been created, it can be modified as necessary without impacting the original policy.

Parameters

-vserver <vserver name> - Vserver

Use this parameter to specify the name of the Vserver of the service policy to be cloned.

-policy <text> - Policy Name

Use this parameter to specify the name of the service policy to be cloned.

-target-vserver <vserver name> - Vserver Name

Use this parameter to specify the name of the vserver on which the new service policy should be created.

-target-policy <text> - New Service Policy Name

Use this parameter to specify the name of the new service policy.

Examples

The following example shows the cloning of a service policy.

cluster1::> network interface service-policy show
Vserver   Policy                 Service: Allowed Addresses
--------- ---------------------- ------------------------------------------
cluster1  net-intercluster       intercluster-core: 0.0.0.0/0

1 entries were displayed.

cluster1::> network interface service-policy clone -vserver cluster1 -policy empty -target-vserver customer1 -target-policy my-net-intercluster

cluster1::> network interface service-policy show
Vserver   Policy                 Service: Allowed Addresses
--------- ---------------------- ------------------------------------------
cluster1  net-intercluster       intercluster-core: 0.0.0.0/0
customer1 my-net-intercluster    intercluster-core: 0.0.0.0/0

2 entries were displayed.