srpythonmgmt
PythonScript

Python Script Policy.



public class PythonScript

Properties
actionScriptOnFail Specifies the action taken when Python fails to modify the given message. When the value is 'passthrough' the packet will be sent out without any modifications. When the value is 'drop' the packet will be dropped.

type=srpythonmgmt.PythonScriptActionScriptOnFail
default=drop
Displayed(tab/group)=Message Action

activeUrl Indicates from which URL the script has been loaded.

type=srpythonmgmt.PythonScriptActiveUrl
access=read-only
Displayed(tab/group)=Active URL (/Python Script URL)

adminState Specifies the administrative state of the Python script.

type=netw.AdministrativeState
default=tmnxOutOfService
Displayed(tab/group)=Administrative State

operationalState Specifies the operational state of the Python script.

type=netw.OperationalState
access=read-only
default=tmnxOutOfService
Displayed(tab/group)=URL Operational State (/Python Script URL)

primaryUrl Specifies the URL of the primary script to change the Python message.

type=string
default=
minimum=0
maximum=180
Displayed(tab/group)=Primary URL (/Python Script URL)

protectionKey Specifies the secret key used for the protection mechanism specified scriptProtection.

type=string
default=
minimum=0
maximum=128
Displayed(tab/group)=Key (/Protection Key)

scriptProtection Specifies the method used to ensure the integrity and/or the confidentiality of the content of the Python script. A value of 'none (1)' indicates the Python script is stored in plain-text, without any mechanism in place to ensure the integrity nor the confidentiality of the content of the Python script. A value of 'hmacSha256' indicates the first line of the Python script must consist of the hash value obtained by hashing the rest of the Python script using the hmac-sha256 hashing algorithm given the key specified in protectionKey. To set this field you must also set protectionKey.

type=srpythonmgmt.PythonScriptProtection
default=none
Displayed(tab/group)=Protection

secondaryUrl Specifies the URL of the secondary script to change the Python message.

type=string
default=
minimum=0
maximum=180
Displayed(tab/group)=Secondary URL (/Python Script URL)

tertiaryUrl Specifies the URL of the tertiary script to change the Python message.

type=string
default=
minimum=0
maximum=180
Displayed(tab/group)=Tertiary URL (/Python Script URL)

 
Overridden Properties
description The Python Script Description.

displayedName The Python Script Name.

access=read-create
minimum=1
maximum=32

 
Properties inherited from policy.PolicyDefinition
configurationAction, configurationMode, discoveryState, displayedName, distributionMode, isMaster, lastSyncTime, numberOfUnderlyingPolicyItems, origin, policyMode, policySyncGroupPointer, policyType
 
Properties inherited from policy.PolicyObject
description, displayedName, globalPolicy, id, isLocal, policyType, siteId, siteName, templateObject
 
Properties inherited from ManagedObject
actionMask, children-Set, deploymentState, isFaultSquelched, name, objectFullName, selfAlarmed
 
Methods

reloadUrl

Indicates whether to reload the Python script file specified by this Python script.
Input Parameters:
aInPythonScriptFullName : Pointer - Fully Descriptive Name (FDN) of the PythonScript on which the Reload URL action is to be performed. The format of the FDN is shown below network:node-system-address:pythonScript:pyScrpt-name For example, if the node system address is 1.3.1.3 and the pool name is 'Test', the FDN would be: network:1.3.1.3:pythonScript:pyScrpt-Test
continueOnFailure : continueOnFailure - (Optional) Continue processing requests in this stream if an exception occurs, unless the request is invalid. Default: false
Methods inherited from policy.PolicyDefinition
distribute, distributeUsingGroups, distributeV2, evaluatePolicy, findGlobal, findLocal, findReleased, getSyncTaskResult, resetToReleasedPolicy, setConfigurationModeToDraft, setConfigurationModeToReleased, setDistributionModeToLocalEditOnly, setDistributionModeToSyncWithGlobal, syncTo, syncToLocalWithResync
 
Supported Network Elements
7750 SR Supported from 12.0.R1
  • Excluded chassis types: 7750-SR1
7705 SAR Hm
7450 ESS Supported from 12.0.R1
  • Excluded chassis types: 7450-ESS1
7950 XRS Supported from 13.0.R5