dxlciscopxgridclient.callbacks module

class dxlciscopxgridclient.callbacks.AncStatusCallback

Bases: EventCallback

Callback wrapper which is invoked on all ANC notifications

Constructor

on_event(event)

Method invoked when a status notification event occurs. Derived classes can implement the on_session_notification() method instead of this method in order to process the event payload as a dict.

Parameters:

event (dxlclient.message.Event) -- Message received for the event notification

class dxlciscopxgridclient.callbacks.IdentitySessionCallback

Bases: EventCallback

Callback wrapper which invokes the on_session() method when a session event is received.

Constructor

on_event(event)

Method invoked when a session event occurs. Derived classes can implement the on_session() method instead of this method in order to process the event payload as a dict.

Parameters:

event (dxlclient.message.Event) -- Message received for the event notification

on_session(session_dict)

Method invoked when an session event occurs.

Parameters:

session_dict (dict) --

Payload for the event notification. For example, the value for an event sent on start of a session should look similar to this:

{
    "IdentitySourceFirstPort": "0",
    "IdentitySourcePortEnd": "0",
    "IdentitySourcePortStart": "0",
    "MDMEndpoint": {},
    "RADIUSAttrs": [ {
        "attrName": "Acct-Session-Id",
        "attrValue": "123"
    } ],
    "assessedPostureEvent": [ {} ],
    "attribute": [ {
        "name": "Authorization_Profiles",
        "type": "string",
        "value": "1234"
    } ],
    "endpointCheckResult": "none",
    "endpointProfile": "Microsoft-Device",
    "gid": "24703",
    "interface": {
        "deviceAttachPt": {
            "deviceMgmtIntfID": {
                "ipAddress": "192.168.1.1"
            }
        },
        "ipIntfID": [
            { "ipAddress": "192.168.1.1" }
        ],
        "macAddress": [ "00:11:22:33:44:55" ]
    },
    "lastUpdateTime": "2017-09-21T22:43:38.006Z",
    "providers": [ "None" ],
    "state": "Started",
    "user": { "name": "root" }
}

The value for the event sent on disconnection of a session should look similar to the above, except with the "state" element set to "Disconnected", rather than "Started".