Ejemplo n.º 1
0
    def parse_args(self, debug=0, store=0, **kwargs):

        self.onu_id = kwargs.pop('onu_id')
        self.channel_id = kwargs.pop('channel_id')
        self.port_id = kwargs.pop('port_id')
        self.onu_session_id = kwargs.pop('onu_session_id')
        self.alloc_id = kwargs.pop('alloc_id')

        BaseOltAutomaton.parse_args(self, debug=debug, store=store, **kwargs)
Ejemplo n.º 2
0
    def parse_args(self, debug=0, store=0, **kwargs):
        self.onu_id = kwargs.pop('onu_id')
        self.serial_number = kwargs.pop('serial_number')
        self.onu_session_id = kwargs.pop('onu_session_id')
        self.port_id = self.onu_id
        self.channel_id = kwargs.pop('channel_id')

        if self.onu_id is None or self.serial_number is None or \
                self.onu_session_id is None or self.channel_id is None:
            raise ValueError('ONU is not well defined')

        BaseOltAutomaton.parse_args(self, debug=debug, store=store, **kwargs)
Ejemplo n.º 3
0
    def parse_args(self, debug=0, store=0, **kwargs):

        self.onu_id = kwargs.pop('onu_id')
        self.channel_id = kwargs.pop('channel_id')
        self.port_id = kwargs.pop('port_id')
        self.onu_session_id = kwargs.pop('onu_session_id')
        self.alloc_id = kwargs.pop('alloc_id')
        self.svlan_id = kwargs.pop('svlan_id')
        self.cvlan_id = kwargs.pop('cvlan_id')
        self.uplink_bandwidth = kwargs.pop('uplink_bandwidth')
        self.downlink_bandwidth = kwargs.pop('downlink_bandwidth')

        BaseOltAutomaton.parse_args(self, debug=debug, store=store, **kwargs)
Ejemplo n.º 4
0
    def parse_args(self, debug=0, store=0, **kwargs):
        self.onu_id = kwargs.pop('onu_id')
        self.serial_number = kwargs.pop('serial_number')
        self.onu_session_id = kwargs.pop('onu_session_id')
        self.port_id = self.onu_id
        self.channel_id = kwargs.pop('channel_id')
        self.alloc_id = alloc_id(self.onu_id)

        if self.onu_id is None or self.serial_number is None or \
                self.onu_session_id is None or self.channel_id is None:
            raise ValueError('ONU is not well defined')

        BaseOltAutomaton.parse_args(self, debug=debug, store=store, **kwargs)
Ejemplo n.º 5
0
    def parse_args(self, debug=0, store=0, **kwargs):
        self.adaptor_agent = kwargs.pop('adapter_agent')
        self.proxy_address = kwargs.pop('proxy_address')
        self.msg = kwargs.pop('msg')

        BaseOltAutomaton.parse_args(self, debug=debug, store=store, **kwargs)
Ejemplo n.º 6
0
 def parse_args(self, debug=0, store=0, **kwargs):
     self.olt_adapter = kwargs.pop('olt_adapter')
     BaseOltAutomaton.parse_args(self, **kwargs)