NGAP Vendor Crawlers¶
This module contains all vendor crawlers of
NGAP implementations. Available
vendor crawlers include:
Each sources the assignment from pycrate’s already-installed, compiled NGAP
specification rather than fetching a network registry – see the module
docstring below for why.
NGAP Elementary Procedure Codes¶
This module contains the vendor crawler for NGAP Elementary Procedure Codes,
which is automatically generating pcapkit.const.ngap.procedure_code.ProcedureCode.
- class pcapkit.vendor.ngap.procedure_code.ProcedureCode[source]¶
Bases:
VendorNGAP elementary procedure codes, 3GPP TS 38.413.
- FLAG: str = 'isinstance(value, int) and 0 <= value <= 255'¶
Value limit checker, matching
pycrate_asn1dir.NGAP’s ownProcedureCode._const_val(ASN1RangeInt(lb=0, ub=255)): aProcedureCodeis encoded as one aligned-PER octet.
- _request()[source]¶
Read the assignment from
pycrate’s compiled NGAP specification.Every
NGAP_Constantsvalue object carries a private_typerefnaming whichNGAP-CommonDataTypesopen type it belongs to (.called, a(module, type)pair), a private_nameholding the ASN.1 identifier verbatim ('id-AMFConfigurationUpdate'), and a private_valholding the assigned integer. None of these has a public accessor that survives this far:pycrate_asn1rt.asnobj.ASN1Obj.get_typerefresolves to the referenced type object rather than its(module, name)pair, and that object’s ownget_namereadsNonehere despiterepr()showing the name – measured against pycrate 0.8.1. Reading the private attributes directly is therefore the only way to recover what this crawler needs, which is a property of parsing pycrate’s own compiled representation rather than a shortcut around a public API this package should have used instead.- Return type:
- Returns:
One
(python_identifier, value)pair perProcedureCodeassignment, in the compiled specification’s own declaration order – already ascending by value, measured against pycrate 0.8.1.- Raises:
ImportError – If the optional
pycratedependency is not installed.
NGAP Protocol IE Identifiers¶
This module contains the vendor crawler for NGAP Protocol IE Identifiers,
which is automatically generating pcapkit.const.ngap.protocol_ie.ProtocolIE.
- class pcapkit.vendor.ngap.protocol_ie.ProtocolIE[source]¶
Bases:
VendorNGAP protocol IE identifiers, 3GPP TS 38.413.
Footnotes