The RADIUS Access-Accept and CoA messages are passed to the configured RADIUS Python scripts. As shown in Figure: Subscriber service Python script operation, the function of the subscriber service Python script is to interpret the subscriber service-specific VSAs that contain the subscriber service instance parameters and to generate a new Alc-Sub-Serv-Internal VSA containing the information required to activate the actual subscriber service on the PPPoE or IPoE session.
This section covers the basics to understand the functionality of a subscriber service Python script. See the Subscriber services Python API section for a detailed description of the alc.sub_svc Python module containing functions and data structures used to define and activate a subscriber service instance.
The alc.sub_svc Python module contains the required functions and data structure to commit a subscriber service, including:
TLVs to build a data structure describing the subscriber service functionality, such as QoS overrides or PCC rules
functions to populate the data structure such as sub_svc.add_to_service(), sub_svc.pccrule.add_to_pccrule(), and sub_svc.flow.add_to_flow()
a function to commit the subscriber service and create the internal VSA from the data structure: sub_svc.commit_service()