lte/gateway/python/magma/captive_portal/rpc_servicer.py
def CreateSession(
        self,
        request: CreateSessionRequest,
        context,
    ) -> CreateSessionResponse:
        """
        Handles create session request from MME by installing the necessary
        flows in pipelined's enforcement app.
        """
        logging.info('Creating a session for subscriber ID: %s',
                     request.subscriber.id)
        return CreateSessionResponse(
            credits=[self._get_credit_update_response(request.imsi_plmn_id)],
            static_rules=[self._get_static_rule()],
            dynamic_rules=self._get_whitelist_rules(),
        )

        Handles create session request from MME by installing the necessary
        flows in pipelined's enforcement app.
        
Handles create session request from MME by installing the necessary
flows in pipelined's enforcement app.
Handles create session request from MME by installing the necessary flows in pipelined ' s enforcement app .
def CreateSession(
        self,
        request: CreateSessionRequest,
        context,
    ) -> CreateSessionResponse:
        logging.info('Creating a session for subscriber ID: %s',
                     request.subscriber.id)
        return CreateSessionResponse(
            credits=[self._get_credit_update_response(request.imsi_plmn_id)],
            static_rules=[self._get_static_rule()],
            dynamic_rules=self._get_whitelist_rules(),
        )
def CreateSession ( self , request : CreateSessionRequest , context , ) -> CreateSessionResponse : logging . info ( 'Creating a session for subscriber ID: %s' , request . subscriber . id ) return CreateSessionResponse ( credits = [ self . _get_credit_update_response ( request . imsi_plmn_id ) ] , static_rules = [ self . _get_static_rule ( ) ] , dynamic_rules = self . _get_whitelist_rules ( ) , )
Handles create session request from MME by installing the necessary
flows in pipelined's enforcement app.
Handles create session request from MME by installing the necessary flows in pipelined ' s enforcement app .
"""
        Handles create session request from MME by installing the necessary
        flows in pipelined's enforcement app.
        """
self
request
CreateSessionRequest
context