Package onep :: Package aaa :: Module IntAttribute :: Class IntAttribute
[frames] | no frames]

Class IntAttribute


The Attribute class for storing an integer attribute.

Instance Methods
 
__init__(self, type_, name, long_value)
Create an Attribute that has integer format.
 
__str__(self)
str(x)

Inherited from Attribute.Attribute: toIDL

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods

Inherited from Attribute.Attribute: fromIDL, fromIDLList, toIDLList

Class Variables

Inherited from Attribute.Attribute: log

Instance Variables
  long_value
The value of a AAA attribute of type integer.

Inherited from Attribute.Attribute: name, type_

Properties

Inherited from object: __class__

Method Details

__init__(self, type_, name, long_value)
(Constructor)

 

Create an Attribute that has integer format. This constructor creates an Attribute with the given Attribute type and value. The Application-specific attributes are keyed on attribute names, hence the name parameters are required parameters for application-specific attributes. The AAA attribute should be of integer format.

Parameters:
  • type_ - Type of the attribute.
  • name - Name of the attribute.
  • long_value - Value of the attribute.
Raises:
  • OnepIllegalArgumentException - if the Attribute type does not support the integer format or if the name is null for Application-specific attributes.
Overrides: object.__init__

__str__(self)
(Informal representation operator)

 

str(x)

Overrides: object.__str__
(inherited documentation)

Instance Variable Details

long_value

The value of a AAA attribute of type integer. This variable retreives the value of an attribute identified by the attribute name from the user's profile on the AAA server. The attribute name can be a standard IETF AAA attribute or a custom application- specific attribute. Custom attributes of only the following form will be available via this API: cisco avpair = "app-attr=shell-timeout:integer:1000" The attribute name and type must exactly match one of the attribute names in the user's profile on the AAA Server.