port-access policy reset

Syntax

port-access policy <POLICY-NAME> reset

Description

Resets the policy configuration to match the current hardware configuration of the policy.

Command context

config

Parameters

<POLICY-NAME>

Specifies the name of the policy to be reset.

Authority

Administrators or local user group members with execution rights for this command.

Examples

Resetting a policy:

switch(config)# port-access policy CLEARPASS-REDIRECT-V2
switch(config-pa-policy)# 20 class ip dhcp
switch(config-pa-policy)# 40 class ip web-traffic action redirect captive-portal
switch(config-pa-policy)# exit
switch(config)# show port-access policy CLEARPASS-REDIRECT-V2

Access Policy Details:
======================

Policy Name   : CLEARPASS-REDIRECT-V2
Policy Type   : Local
Policy Status : Applied

SEQUENCE    CLASS                        TYPE ACTION
----------- ---------------------------- ---- ----------------------------------
20          dhcp                         ipv4 permit
40          web-traffic                  ipv4 redirect captive-portal

switch(config)# port-access policy CLEARPASS-REDIRECT-V2
switch(config-pa-policy)# 50 class ip clearpass-web action cir kbps 1024 cbs 2048 exceed drop
switch(config-pa-policy)# no 20
switch(config-pa-policy)# exit
switch(config)# show port-access policy CLEARPASS-REDIRECT-V2

Access Policy Details:
======================

Policy Name   : CLEARPASS-REDIRECT-V2
Policy Type   : Local
Policy Status : Rejected

SEQUENCE    CLASS                        TYPE ACTION
----------- ---------------------------- ---- ----------------------------------
40          web-traffic                  ipv4 redirect captive-portal
50          clearpass-web                ipv4 cir kbps 1024 cbs 2048
                                              exceed drop

switch(config)# port-access policy CLEARPASS-REDIRECT-V2 reset
Following policy entries will be removed:
50 class ip clearpass-web action cir kbps 1024 cbs 2048 exceed drop

Following policy entries will be added:
20 class ip dhcp

Do you want to continue (y/n)? y
switch(config)# show port-access policy CLEARPASS-REDIRECT-V2

Access Policy Details:
======================

Policy Name   : CLEARPASS-REDIRECT-V2
Policy Type   : Local
Policy Status : Applied

SEQUENCE    CLASS                        TYPE ACTION
----------- ---------------------------- ---- ----------------------------------
20          dhcp                         ipv4 permit
40          web-traffic                  ipv4 redirect captive-portal