python-policy(RADIUS server group view)

Function

The python-policy command binds a python policy template to a RADIUS server group.

The undo python-policy command unbinds a python policy template from a RADIUS server group.

By default, no python policy template is bound to a RADIUS server group.

This command is supported only on the NetEngine 8000 F1A.

Format

python-policy policy-name

undo python-policy policy-name

Parameters

Parameter Description Value
policy-name

Specifies the name of a python policy template.

The value is a string of 1 to 32 case-insensitive characters, spaces not supported.

Views

RADIUS server group view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
radius write

Usage Guidelines

To implement flexible interoperation with RADIUS servers by calling python scripts, run the access python-policy command to configure a python policy template and then run the python-policy command to bind the python policy template to the corresponding RADIUS server group.

Example

# Bind the python policy template test1 to the RADIUS server group huawei.
<HUAWEI> system-view
[~HUAWEI] access python-policy test1
[*HUAWEI-python-policy-test1] commit
[~HUAWEI-python-policy-test1] quit
[~HUAWEI] radius-server group huawei
[*HUAWEI-radius-huawei] python-policy test1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >