ONTAP 9.15.1 commands

network interface service-policy clone

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 (privilege: advanced)

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

-policy <text> - Policy Name (privilege: advanced)

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

-target-vserver <vserver name> - Vserver Name (privilege: advanced)

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 (privilege: advanced)

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 cluster1,ipspace1
Vserver   Policy                     Service: Allowed Addresses
--------- -------------------------- ----------------------------------------
cluster1
          custom1                    intercluster-core: 0.0.0.0/0
                                     management-core: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
default-intercluster       intercluster-core: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-management         management-core: 0.0.0.0/0
                                     management-autosupport: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-route-announce     management-bgp: 0.0.0.0/0

ipspace1
          default-intercluster       intercluster-core: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-management         management-core: 0.0.0.0/0
                                     management-autosupport: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-route-announce     management-bgp: 0.0.0.0/0

7 entries were displayed.

cluster1::> network interface service-policy clone -vserver cluster1 -policy custom1 -target-vserver ipspace1 -target-policy custom2

cluster1::> network interface service-policy show -vserver cluster1,ipspace1
Vserver   Policy                     Service: Allowed Addresses
--------- -------------------------- ----------------------------------------
cluster1
          custom1                    intercluster-core: 0.0.0.0/0
                                     management-core: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
default-intercluster       intercluster-core: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-management         management-core: 0.0.0.0/0
                                     management-autosupport: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-route-announce     management-bgp: 0.0.0.0/0

ipspace1
          custom2                    intercluster-core: 0.0.0.0/0
                                     management-core: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
default-intercluster       intercluster-core: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-management         management-core: 0.0.0.0/0
                                     management-autosupport: 0.0.0.0/0
                                     management-ssh: 0.0.0.0/0
                                     management-https: 0.0.0.0/0
default-route-announce     management-bgp: 0.0.0.0/0

8 entries were displayed.
Top of Page