PartialLock

Keys

Leafs

class NetconfState.Datastores.Datastore.Locks.PartialLock

Bases: Entity

Class Hierarchy: NetconfState Datastores Datastore Locks PartialLock

This class represents state data.

List of partial locks.

lock_id(key)

This is the lock id returned in the <partial-lock> response

type: int

range: 0..4294967295

config: False

locked_by_session

The session ID of the session that has locked this resource. Both a global lock and a partial lock MUST contain the NETCONF session-id. If the lock is held by a session that is not managed by the NETCONF server (e.g., a CLI session), a session id of 0 (zero) is reported

type: int

range: 0..4294967295

mandatory: True

config: False

locked_time

The date and time of when the resource was locked

type: str

pattern: \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[\+\-]\d{2}:\d{2})

mandatory: True

config: False

select

The xpath expression that was used to request the lock. The select expression indicates the original intended scope of the lock

type: list of str

config: False

locked_node

The list of instance-identifiers (i.e., the locked nodes). The scope of the partial lock is defined by the list of locked nodes

type: list of str

config: False