python commands

configure 
python 
apply-groups reference
apply-groups-exclude reference
python-policy string 
apply-groups reference
apply-groups-exclude reference
cache 
admin-state keyword
apply-groups reference
apply-groups-exclude reference
entry-size number
max-entries number
max-entry-lifetime number
mcs-peer 
apply-groups reference
apply-groups-exclude reference
ip-address reference
sync-tag string
minimum-lifetimes 
high-availability number
multi-chassis-redundancy number
persistence number
persistence boolean
description string
dhcp keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
dhcp6 keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
diameter keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
gtpv1-c keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
gtpv2-c keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
nat-group reference
pfcp keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
pppoe keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
radius keyword direction keyword 
apply-groups reference
apply-groups-exclude reference
script reference
syslog 
apply-groups reference
apply-groups-exclude reference
script reference
vsd 
apply-groups reference
apply-groups-exclude reference
script reference
wlan-gw-group reference
python-script string 
action-on-fail keyword
admin-state keyword
apply-groups reference
apply-groups-exclude reference
description string
protection 
hmac-sha256 string
run-as-user string
urls string
version keyword

python command descriptions

python

Synopsis Enter the python context
Context configure python
Treepython
Introduced16.0.R1

Platforms

All

python-policy [name] string

Synopsis Enter the python-policy list instance
Contextconfigure python python-policy string
Treepython-policy
Max. Instances64
Introduced16.0.R1

Platforms

All

[name] string
Synopsis Python policy name
Context configure python python-policy string
Treepython-policy
String Length1 to 32

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

cache
Synopsis Enable the cache context
Context configure python python-policy string cache
Treecache
Introduced16.0.R1

Platforms

All

entry-size number
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisMaximum data structure size for Python cache entry
Contextconfigure python python-policy string cache entry-size number
Treeentry-size
Range32 to 2048
Default256
Units bytes
Introduced16.0.R1

Platforms

All

max-entries number
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisMaximum number of Python cache entries to be stored
Contextconfigure python python-policy string cache max-entries number
Treemax-entries
Range1 to 1000000
Default128000
Introduced 16.0.R1

Platforms

All

mcs-peer
Synopsis Enable the mcs-peer context
Context configure python python-policy string cache mcs-peer
Treemcs-peer
Introduced16.0.R1

Platforms

All

sync-tag string
Synopsis Python policy cache that is uniquely identified within the scope of MCS peer
Contextconfigure python python-policy string cache mcs-peer sync-tag string
Treesync-tag
String Length1 to 32

Notes

This element is mandatory.

Introduced16.0.R1

Platforms

All

minimum-lifetimes
Synopsis Enter the minimum-lifetimes context
Contextconfigure python python-policy string cache minimum-lifetimes
Treeminimum-lifetimes
Introduced16.0.R1

Platforms

All

persistence boolean
WARNING:

Modifying this element toggles the admin-state of the parent element automatically for the new value to take effect.

SynopsisAllow persistency support for the cached entries of the Python policy
Contextconfigure python python-policy string cache persistence boolean
Treepersistence
Defaultfalse
Introduced16.0.R1

Platforms

All

dhcp [message-type] keyword direction keyword
Synopsis Enter the dhcp list instance
Context configure python python-policy string dhcp keyword direction keyword
Treedhcp
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis DHCP message type
Context configure python python-policy string dhcp keyword direction keyword
Treedhcp
Optionsdiscover, offer, request, decline, ack, nak, release, inform, force-renew, lease-query, lease-unassigned, lease-unknown, lease-active

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string dhcp keyword direction keyword
Treedhcp
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

dhcp6 [message-type] keyword direction keyword
Synopsis Enter the dhcp6 list instance
Context configure python python-policy string dhcp6 keyword direction keyword
Treedhcp6
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis DHCPv6 message type
Context configure python python-policy string dhcp6 keyword direction keyword
Treedhcp6
Optionssolicit, advertise, request, confirm, renew, rebind, reply, release, decline, reconfigure, info-request, relay-forward, relay-reply

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string dhcp6 keyword direction keyword
Treedhcp6
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

diameter [message-type] keyword direction keyword
Synopsis Enter the diameter list instance
Contextconfigure python python-policy string diameter keyword direction keyword
Treediameter
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis Diameter message type
Context configure python python-policy string diameter keyword direction keyword
Treediameter
Optionsccr, cca, rar, raa, cer, cea, dwr, dwa, dpr, dpa, asr, asa, aar, aaa

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string diameter keyword direction keyword
Treediameter
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

gtpv1-c [message-type] keyword direction keyword
Synopsis Enter the gtpv1-c list instance
Contextconfigure python python-policy string gtpv1-c keyword direction keyword
Treegtpv1-c
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis GTPv1-C message type
Context configure python python-policy string gtpv1-c keyword direction keyword
Treegtpv1-c
Optionsecho-request, echo-response, version-not-supported, create-pdp-context-request, create-pdp-context-response, delete-pdp-context-request, delete-pdp-context-response, error-indication, end-marker

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string gtpv1-c keyword direction keyword
Treegtpv1-c
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

gtpv2-c [message-type] keyword direction keyword
Synopsis Enter the gtpv2-c list instance
Contextconfigure python python-policy string gtpv2-c keyword direction keyword
Treegtpv2-c
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis GTPv2-C message type
Context configure python python-policy string gtpv2-c keyword direction keyword
Treegtpv2-c
Optionsecho-request, echo-response, version-not-supported, create-session-request, create-session-response, modify-bearer-request, modify-bearer-response, delete-session-request, delete-session-response, delete-bearer-request, delete-bearer-response, release-access-bearers-request, release-access-bearers-response, downlink-data-notification, downlink-data-notification-ack, change-notification-request, change-notification-response, stop-paging-indication

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string gtpv2-c keyword direction keyword
Treegtpv2-c
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

nat-group reference
WARNING:

Modifying this element recreates the parent element automatically for the new value to take effect.

SynopsisNAT ISA group for this Python policy
Contextconfigure python python-policy string nat-group reference
Treenat-group

Reference

configure isa nat-group number

Notes

The following elements are part of a choice: nat-group or wlan-gw-group.

Introduced16.0.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-e, 7750 SR-s

pfcp [message-type] keyword direction keyword
Synopsis Enter the pfcp list instance
Context configure python python-policy string pfcp keyword direction keyword
Treepfcp
Introduced22.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

[message-type] keyword
Synopsis Message type applied to the script
Context configure python python-policy string pfcp keyword direction keyword
Treepfcp
Optionsheartbeat-request, heartbeat-response, association-setup-request, association-setup-response, association-update-request, association-update-response, association-release-request, association-release-response, node-report-request, node-report-response, session-estab-request, session-estab-response, session-mod-request, session-mod-response, session-del-request, session-del-response, session-report-request, session-report-response

Notes

This element is part of a list key.

Introduced22.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string pfcp keyword direction keyword
Treepfcp
Optionsingress, egress

Notes

This element is part of a list key.

Introduced22.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

script reference
Synopsis Python script to handle the message
Context configure python python-policy string pfcp keyword direction keyword script reference
Treescript

Reference

configure python python-script string

Notes

This element is mandatory.

Introduced22.10.R1

Platforms

7450 ESS, 7750 SR, 7750 SR-a, 7750 SR-e, 7750 SR-s, VSR

pppoe [message-type] keyword direction keyword
Synopsis Enter the pppoe list instance
Context configure python python-policy string pppoe keyword direction keyword
Treepppoe
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis PPPoE message type
Context configure python python-policy string pppoe keyword direction keyword
Treepppoe
Optionssession-lcp, session-pap, session-chap, session-ipcp, session-ip6cp, pado, padi, padr, pads, padt

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string pppoe keyword direction keyword
Treepppoe
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

radius [message-type] keyword direction keyword
Synopsis Enter the radius list instance
Contextconfigure python python-policy string radius keyword direction keyword
Treeradius
Introduced16.0.R1

Platforms

All

[message-type] keyword
Synopsis RADIUS message type
Context configure python python-policy string radius keyword direction keyword
Treeradius
Optionsaccess-request, access-accept, access-reject, accounting-request, accounting-response, access-challenge, disconnect-request, change-of-authorization-request

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

direction keyword
Synopsis Event that is either incoming or outgoing
Contextconfigure python python-policy string radius keyword direction keyword
Treeradius
Optionsingress, egress

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

vsd
Synopsis Enable the vsd context
Context configure python python-policy string vsd
Treevsd
Introduced16.0.R1

Platforms

All

script reference
Synopsis Python script name for the received XMPP Service-Config response messages
Contextconfigure python python-policy string vsd script reference
Treescript

Reference

configure python python-script string

Notes

This element is mandatory.

Introduced16.0.R1

Platforms

All

wlan-gw-group reference
WARNING:

Modifying this element recreates the parent element automatically for the new value to take effect.

SynopsisWLAN ISA group for this Python policy
Contextconfigure python python-policy string wlan-gw-group reference
Treewlan-gw-group

Reference

configure isa wlan-gw-group number

Notes

The following elements are part of a choice: nat-group or wlan-gw-group.

Introduced16.0.R1

Platforms

7750 SR, 7750 SR-e, 7750 SR-s

python-script [name] string

Synopsis Enter the python-script list instance
Contextconfigure python python-script string
Treepython-script
Max. Instances256
Introduced16.0.R1

Platforms

All

[name] string
Synopsis Python script policy name
Context configure python python-script string
Treepython-script
String Length1 to 32

Notes

This element is part of a list key.

Introduced16.0.R1

Platforms

All

action-on-fail keyword
Synopsis Action taken when Python fails to modify the given message
Contextconfigure python python-script string action-on-fail keyword
Treeaction-on-fail
Defaultdrop
Optionspassthrough, drop
Introduced 16.0.R1

Platforms

All

admin-state keyword
Synopsis Administrative state of the Python script
Contextconfigure python python-script string admin-state keyword
Treeadmin-state
Defaultdisable
Optionsenable, disable
Introduced16.0.R1

Platforms

All

run-as-user string
Synopsis User authenticated for scripts
Context configure python python-script string run-as-user string
Treerun-as-user

Description

This command configures a user that is different from the current user of the session. Script authentication, authorization, accounting, and any activity within the script, is run as the specified user.

If this command is not configured, the current user of the session is used.

String Length1 to 32
Introduced22.10.R1

Platforms

All

urls string
Synopsis Script location in URL format
Context configure python python-script string urls string
Treeurls
String Length1 to 180
Max. Instances3

Notes

This element is ordered by the user.

Introduced16.0.R4

Platforms

All

version keyword
WARNING:

Modifying this element recreates the parent element automatically for the new value to take effect.

SynopsisPython version the script is written for
Contextconfigure python python-script string version keyword
Treeversion
Defaultpython2
Optionspython2, python3
Introduced21.2.R1

Platforms

All