access python-policy

Function

The access python-policy command configures a python policy template.

The undo access python-policy command deletes a python policy template.

By default, the python script extension function is disabled and no python policy template is configured.

This command is supported only on the NetEngine 8000 F1A.

Format

access python-policy policy-name

undo access 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

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
aaa-access write

Usage Guidelines

Usage Scenario

The device supports flexible interoperation with RADIUS servers by calling python scripts. To configure a python policy template, run the access python-policy command so that interoperation requirements of different RADIUS servers can be met.

Prerequisites

The python script package has been uploaded to the cfcard: directory on the NetEngine 8000 F.

The python script extension function has been enabled.

Precautions

A maximum of 64 python policy templates can be configured on the device.

Example

# Configure a python policy template.
<HUAWEI> system-view
[~HUAWEI] access enable python extend script-package BrasPyExtend_pythonpackage_V1.0.zip
[~HUAWEI] access python-policy py
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >