[docs]@register_command@dataclassclassPED_SCHEDULE:""" Configure the impairment scheduler function. The configuration of the scheduler depends on the kind of distribution to schedule: (1) Burst distributions: "Fixed Burst" and "Accumulate and Burst". (2) Non-Burst distributions: All others. For burst distributions, the scheduler can be configured for "One-shot" operation or "Repeat Operation". When running in "Repeat Operation" the "Repeat Period" must be configured. For non-burst distributions, the scheduler can be configured operate in either "Continuous" or "Repeat Period" modes. When running in "Repeat Period" configuration of "Duration" and "Repeat Period" is required. """code:typing.ClassVar[int]=1611pushed:typing.ClassVar[bool]=True_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):duration:int=field(XmpInt())"""integer, specifies the "on" period. Units = multiples of 10 ms (range 1 to 65535), default is 1"""period:int=field(XmpInt())"""integer, specifies the "total" period. Units = multiples of 10 ms (range 0 to 65535), default is 0"""classSetDataAttr(RequestBodyStruct):duration:int=field(XmpInt())"""integer, specifies the "on" period. Units = multiples of 10 ms (range 1 to 65535), default is 1"""period:int=field(XmpInt())"""integer, specifies the "total" period. Units = multiples of 10 ms (range 0 to 65535), default is 0"""
[docs]defget(self)->Token[GetDataAttr]:"""Get the impairment scheduler configuration. :return: the impairment scheduler configuration :rtype: PED_SCHEDULE.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,duration:int,period:int)->Token[None]:"""Set the impairment scheduler configuration. :param duration: specifies the "on" period. Units = multiples of 10 ms (range 1 to 65535), default is 1 :type duration: int :param period: specifies the "total" period. Units = multiples of 10 ms (range 0 to 65535), default is 0 :type period: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],duration=duration,period=period))
[docs]@register_command@dataclassclassPED_ONESHOTSTATUS:""" Retrieves the one-shot completion status. .. note:: The return value is only valid, if the configured distribution is either accumulate & burst (DELAY) or fixed burst (non-DELAY). """code:typing.ClassVar[int]=1612pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):one_shot_status:int=field(XmpByte())"""byte, specifies the status."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the one-shot completion status. :return: the one-shot completion status :rtype: PED_ONESHOTSTATUS.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]@register_command@dataclassclassPED_OFF:"""Configure Impairments Distribution to OFF. Assigning a different distribution than OFF to an impairment will activate the impairment. To de-activate the impairment assign distribution OFF. """code:typing.ClassVar[int]=1620pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassSetDataAttr(RequestBodyStruct):pass
[docs]defset(self)->Token[None]:"""Configure Impairments Distribution to OFF. Assigning a different distribution than OFF to an impairment will activate the impairment. To de-activate the impairment assign distribution OFF. """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]@register_command@dataclassclassPED_FIXED:""" Configuration of Fixed Rate distribution. This is predictable distribution with nearly equal distance between impairments, to match the configured probability. .. note:: In case of misordering, a special limit applies, probability * (depth + 1) should be less than 1000000. """code:typing.ClassVar[int]=1621pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):probability:int=field(XmpInt())"""integer, specifies the fixed probability in ppm. Default value is 0."""classSetDataAttr(RequestBodyStruct):probability:int=field(XmpInt())"""integer, specifies the fixed probability in ppm. Default value is 0."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the probability of a Fixed Rate distribution. :return: the fixed probability in ppm. Default value is 0. :rtype: PED_FIXED.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,probability:int)->Token[None]:"""Set the probability of a Fixed Rate distribution. :param probability: the fixed probability in ppm. Default value is 0. :type probability: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],probability=probability))
[docs]@register_command@dataclassclassPED_RANDOM:""" Configuration of Random Rate distribution. Packets are impaired randomly based on a per packet probability. This way the impaired fraction of packets will be equal to the configured probability over time. Random probability in ppm (i.e. 1 means 0.0001%) """code:typing.ClassVar[int]=1622pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):probability:int=field(XmpInt())"""integer, specifies the random probability in ppm. Default value is 0."""classSetDataAttr(RequestBodyStruct):probability:int=field(XmpInt())"""integer, specifies the random probability in ppm. Default value is 0."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the probability of a Random Rate distribution. :return: specifies the random probability in ppm. Default value is 0. :rtype: PED_RANDOM.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,probability:int)->Token[None]:"""Set the probability of a Random Rate distribution. :param probability: specifies the random probability in ppm. Default value is 0. :type probability: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],probability=probability))
[docs]@register_command@dataclassclassPED_BER:""" Configuration of Bit Error Rate distribution. """code:typing.ClassVar[int]=1623pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):coef:int=field(XmpInt())"""integer, specifies the coefficient for BER. Default value: 1 (Range is 1 to 9)."""exp:int=field(XmpInt())"""integer, specifies the exponent for BER. Default value: -10 (Range is -18 to -1)."""classSetDataAttr(RequestBodyStruct):coef:int=field(XmpInt())"""integer, specifies the coefficient for BER. Default value: 1 (Range is 1 to 9)."""exp:int=field(XmpInt())"""integer, specifies the exponent for BER. Default value: -10 (Range is -18 to -1)."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Bit Error Rate distribution. :return: the configuration of Bit Error Rate distribution :rtype: PED_BER.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,coef:int,exp:int)->Token[None]:"""Set the configuration of Bit Error Rate distribution. :param coef: specifies the coefficient for BER. Default value: 1 (Range is 1 to 9). :type coef: int :param exp: specifies the exponent for BER. Default value: -10 (Range is -18 to -1). :type exp: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],coef=coef,exp=exp))
[docs]@register_command@dataclassclassPED_FIXEDBURST:""" Configuration of Fixed Burst distribution. .. note:: In case of ``_impairment_type_xindex`` = ``MISO``, burst size is fixed to 1. """code:typing.ClassVar[int]=1624pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):burst_size:int=field(XmpInt())"""integer, specifies the burst size (Range 1 - 16383). Default value = 1."""classSetDataAttr(RequestBodyStruct):burst_size:int=field(XmpInt())"""integer, specifies the burst size (Range 1 - 16383). Default value = 1."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Fixed Burst distribution. :return: configuration of Fixed Burst distribution. :rtype: PED_FIXEDBURST.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,burst_size:int)->Token[None]:"""Set the configuration of Fixed Burst distribution. :param burst_size: specifies the burst size (Range 1 - 16383). Default value = 1. :type burst_size: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],burst_size=burst_size))
[docs]@register_command@dataclassclassPED_RANDOMBURST:""" Configuration of Random Burst distribution. """code:typing.ClassVar[int]=1625pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):minimum:int=field(XmpInt())"""integer, specifies minimum burst size. Default value: 0 (Range 0 to 65535)"""maximum:int=field(XmpInt())"""integer, specifies maximum burst size. Default value: 0 (Range 0 to 65535)"""probability:int=field(XmpInt())"""integer, specifies the per packet probability of initiating a burst in ppm. Default value: 0."""classSetDataAttr(RequestBodyStruct):minimum:int=field(XmpInt())"""integer, specifies minimum burst size. Default value: 0 (Range 0 to 65535)"""maximum:int=field(XmpInt())"""integer, specifies maximum burst size. Default value: 0 (Range 0 to 65535)"""probability:int=field(XmpInt())"""integer, specifies the per packet probability of initiating a burst in ppm. Default value: 0."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Random Burst distribution. :return: configuration of Random Burst distribution. :rtype: PED_RANDOMBURST.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,minimum:int,maximum:int,probability:int)->Token[None]:"""Set the configuration of Random Burst distribution. :param minimum: specifies minimum burst size. Default value: 0 (Range 0 to 65535) :type minimum: int :param maximum: specifies maximum burst size. Default value: 0 (Range 0 to 65535) :type maximum: int :param probability: specifies the per packet probability of initiating a burst in ppm. Default value: 0. :type probability: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],minimum=minimum,maximum=maximum,probability=probability))
[docs]@register_command@dataclassclassPED_GE:""" Configuration of Gilbert-Elliot distribution. """code:typing.ClassVar[int]=1626pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):good_state_prob:int=field(XmpInt())"""integer, specifies the good state probability in ppm. Default value: 0."""good_state_trans_prob:int=field(XmpInt())"""integer, specifies the good state transition probability in ppm. Default value: 0."""bad_state_prob:int=field(XmpInt())"""integer, specifies the bad state probability in ppm. Default value: 0."""bad_state_trans_prob:int=field(XmpInt())"""integer, specifies the bad state transition probability in ppm. Default value: 0."""classSetDataAttr(RequestBodyStruct):good_state_prob:int=field(XmpInt())"""integer, specifies the good state probability in ppm. Default value: 0."""good_state_trans_prob:int=field(XmpInt())"""integer, specifies the good state transition probability in ppm. Default value: 0."""bad_state_prob:int=field(XmpInt())"""integer, specifies the bad state probability in ppm. Default value: 0."""bad_state_trans_prob:int=field(XmpInt())"""integer, specifies the bad state transition probability in ppm. Default value: 0."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Gilbert-Elliot distribution. :return: the configuration of Gilbert-Elliot distribution. :rtype: PED_GE.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,good_state_prob:int,good_state_trans_prob:int,bad_state_prob:int,bad_state_trans_prob:int)->Token[None]:"""Set the configuration of Gilbert-Elliot distribution. :param good_state_prob: specifies the good state probability in ppm. Default value: 0. :type good_state_prob: int :param good_state_trans_prob: specifies the good state transition probability in ppm. Default value: 0. :type good_state_trans_prob: int :param bad_state_prob: specifies the bad state probability in ppm. Default value: 0. :type bad_state_prob: int :param bad_state_trans_prob: specifies the bad state transition probability in ppm. Default value: 0. :type bad_state_trans_prob: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],good_state_prob=good_state_prob,good_state_trans_prob=good_state_trans_prob,bad_state_prob=bad_state_prob,bad_state_trans_prob=bad_state_trans_prob))
[docs]@register_command@dataclassclassPED_UNI:""" Configuration of Uniform distribution. .. note:: If minimum is less than minimum , value is set to minimum. If minimum is greater than maximum, value is set to maximum. """code:typing.ClassVar[int]=1627pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):minimum:int=field(XmpLong())"""long, in case of iid != DELAY, specifies the minimum no. of packets. Default value: 0 (Range 0 to 4194288). In case of iid = DELAY, specifies the minimum latency limit. Unit is nanosecond (must be multiples of 100 ns). Default value: minimum latency. """maximum:int=field(XmpLong())"""long, in case of iid != DELAY, specifies the maximum no. of packets. Default value: 0 (Range 0 to 4194288). In case of iid = DELAY, specifies the maximum latency limit. Unit is nanosecond (must be multiples of 100 ns). Default value: minimum latency. """classSetDataAttr(RequestBodyStruct):minimum:int=field(XmpLong())"""long, in case of iid != DELAY, specifies the minimum no. of packets. Default value: 0 (Range 0 to 4194288). In case of iid = DELAY, specifies the minimum latency limit. Unit is nanosecond (must be multiples of 100 ns). Default value: minimum latency. """maximum:int=field(XmpLong())"""long, in case of iid != DELAY, specifies the maximum no. of packets. Default value: 0 (Range 0 to 4194288). In case of iid = DELAY, specifies the maximum latency limit. Unit is nanosecond (must be multiples of 100 ns). Default value: minimum latency. """
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Uniform distribution. :return: the configuration of Uniform distribution. :rtype: PED_UNI.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,minimum:int,maximum:int)->Token[None]:"""Set the configuration of Uniform distribution. :param minimum: in case of iid != DELAY, specifies the minimum no. of packets. Default value: 0 (Range 0 to 4194288). In case of iid = DELAY, specifies the minimum latency limit. Unit is nanosecond (must be multiples of 100 ns). Default value: minimum latency. :type minimum: int :param maximum: in case of iid != DELAY, specifies the maximum no. of packets. Default value: 0 (Range 0 to 4194288). In case of iid = DELAY, specifies the maximum latency limit. Unit is nanosecond (must be multiples of 100 ns). Default value: minimum latency. :type maximum: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],minimum=minimum,maximum=maximum))
[docs]@register_command@dataclassclassPED_GAUSS:""" Configuration of Gaussian distribution. .. note:: In case of ``_impairment_type_xindex != DELAY``: (1) mean plus 3 times standard deviation should be less than or equal to max allowed (4194288). (2) mean should always be at least 3 times the standard deviation, this to ensure that the impairment distance is always positive. In case of ``_impairment_type_xindex = DELAY``: (1) mean plus 3 times standard deviation should be less than or equal to the maximum latency. (2) mean minus 3 times the standard deviation should be greater than or equal to minimum latency. """code:typing.ClassVar[int]=1628pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):mean:int=field(XmpLong())"""long, specifies the Gaussian mean. In case of iid != DELAY, specifies the Gaussian mean value as number of packets.Default value: 0 packets (Range 0 to 4194288). In case of iid = DELAY, specifies the Gaussian mean value. Units is nanosecond (must be multiples of 100 ns). """std_deviation:int=field(XmpLong())"""long, specifies the Gaussian standard deviation. In case of iid != DELAY, specifies the standard deviation as number of packets. Default value: 0 packets (Range 0 to 4194288). In case of iid = DELAY, specifies the the Gaussian standard deviation. Units is nanosecond (must be multiples of 100 ns). Default value: 0 ns. """classSetDataAttr(RequestBodyStruct):mean:int=field(XmpLong())"""long, specifies the Gaussian mean. In case of iid != DELAY, specifies the Gaussian mean value as number of packets.Default value: 0 packets (Range 0 to 4194288). In case of iid = DELAY, specifies the Gaussian mean value. Units is nanosecond (must be multiples of 100 ns)."""std_deviation:int=field(XmpLong())"""long, specifies the Gaussian standard deviation. In case of iid != DELAY, specifies the standard deviation as number of packets. Default value: 0 packets (Range 0 to 4194288). In case of iid = DELAY, specifies the the Gaussian standard deviation. Units is nanosecond (must be multiples of 100 ns). Default value: 0 ns. """
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Gaussian distribution. :return: the configuration of Gaussian distribution :rtype: PED_GAUSS.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,mean:int,std_deviation:int)->Token[None]:"""Set the configuration of Gaussian distribution. :param mean: specifies the Gaussian mean. :type mean: int :param std_deviation: specifies the Gaussian standard deviation. :type std_deviation: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],mean=mean,std_deviation=std_deviation))
[docs]@register_command@dataclassclassPED_POISSON:""" Configuration of "Poisson" distribution. .. note:: Standard deviation is derived from mean, i.e., standard deviation = SQRT(mean). In case of ``_impairment_type_xindex != DELAY``, mean plus 3 times standard deviation should be less than or equal to max allowed (4194288). In case of ``_impairment_type_xindex = DELAY``, mean plus 3 times standard deviation should be less than or equal to the maximum latency. """code:typing.ClassVar[int]=1629pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):mean:int=field(XmpLong())"""long, specifies the Poisson mean value. In case of iid = DELAY specifies the Poisson mean. Unit is nanosecond (must be multiples of 100ns). Default value: 0 ns. In case of iid != DELAY specifies the Poisson mean in number of packets packets. Default value: 9 packets (Range 0 to 4194288). """classSetDataAttr(RequestBodyStruct):mean:int=field(XmpLong())"""long, specifies the Poisson mean value. In case of iid = DELAY specifies the Poisson mean. Unit is nanosecond (must be multiples of 100ns). Default value: 0 ns. In case of iid != DELAY specifies the Poisson mean in number of packets packets. Default value: 9 packets (Range 0 to 4194288). """
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Poisson distribution. :return: the configuration of Poisson distribution :rtype: PED_POISSON.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,mean:int)->Token[None]:"""Set the configuration of Poisson distribution. :param mean: specifies the Poisson mean value. :type mean: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],mean=mean))
[docs]@register_command@dataclassclassPED_GAMMA:""" Configuration of Gamma distribution. .. note:: Mean and Standard deviation are calculated from Shape and Scale parameters and validation is performed using those. standard deviation = [SQRT(shape * scale * scale)]mean = [shape * scale]. In case of ``_impairment_type_xindex != DELAY``, (1) mean plus 4 times standard deviation should be less than or equal to max allowed(4194288). (2)shape and scale should be greater than or equal to 0. In case of ``_impairment_type_xindex = DELAY``, mean plus 4 times standard deviation should be less than or equal to the maximum latency. """code:typing.ClassVar[int]=1630pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):shape:int=field(XmpLong())"""long, specifies the shape. Units: none. Default value: 0."""scale:int=field(XmpLong())"""long, specifies the Gamma function scale parameter. In case of iid = DELAY, units: nanosecond (must be multiples of 100 ns). Default value: 0 ns. In case of iid != DELAY, units: number of packets.Default value: 0 packets. """classSetDataAttr(RequestBodyStruct):shape:int=field(XmpLong())"""long, specifies the shape. Units: none. Default value: 0."""scale:int=field(XmpLong())"""long, specifies the Gamma function scale parameter. In case of iid = DELAY, units: nanosecond (must be multiples of 100 ns). Default value: 0 ns. In case of iid != DELAY, units: number of packets.Default value: 0 packets. """
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Gamma distribution. :return: the configuration of Gamma distribution :rtype: PED_GAMMA.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,shape:int,scale:int)->Token[None]:"""Set the configuration of Gamma distribution. :param shape: specifies the shape. Units: none. Default value: 0. :type shape: int :param scale: specifies the Gamma function scale parameter. :type scale: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],shape=shape,scale=scale))
[docs]@register_command@dataclassclassPED_CUST:""" Associate a custom distribution to a flow and impairment type. .. note:: Before associating a custom distribution, the below validation checks are applied. In case of ``_impairment_type_xindex != DELAY``, (1) Custom values should be less than or equal to max allowed (4194288). (2) Custom distribution bust contain 512 values. In case of ``_impairment_type_xindex = DELAY``, (1) Custom values should be less than or equal to the maximum latency. (2) Custom values should be greater than or equal to minimum latency. (3) Custom distribution should contain 1024 values. """code:typing.ClassVar[int]=1631pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):cust_id:int=field(XmpInt())"""integer, custom distribution identifier."""classSetDataAttr(RequestBodyStruct):cust_id:int=field(XmpInt())"""integer, custom distribution identifier."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the custom distribution identifier that is associated to a flow and impairment type. :return: custom distribution identifier :rtype: PED_CUST.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,cust_id:int)->Token[None]:"""Associate a custom distribution to a flow and impairment type. :param cust_id: custom distribution identifier :type cust_id: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],cust_id=cust_id))
[docs]@register_command@dataclassclassPED_CONST:""" Configuration of Constant Delay distribution (DELAY only). Unit is ns (must be multiples of 100ns). Default value: Minimum supported per speed and FEC mode. .. note:: If the latency is less than minimum latency, value is set to minimum latency. If the latency is greater than maximum latency, value is set to maximum latency. """code:typing.ClassVar[int]=1640pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):delay:int=field(XmpLong())"""long, specifies the constant delay/latency time. Unit is nanosecond (must be multiples of 100 ns). Default value: Minimum supported per speed and FEC mode."""classSetDataAttr(RequestBodyStruct):delay:int=field(XmpLong())"""long, specifies the constant delay/latency time. Unit is nanosecond (must be multiples of 100 ns). Default value: Minimum supported per speed and FEC mode."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Constant Delay distribution (DELAY only). :return: the configuration of Constant Delay distribution (DELAY only) :rtype: PED_CONST.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,delay:int)->Token[None]:"""Set the configuration of Constant Delay distribution (DELAY only). :param delay: specifies the constant delay/latency time. Unit is nanosecond (must be multiples of 100 ns). Default value: Minimum supported per speed and FEC mode. :type delay: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],delay=delay))
[docs]@register_command@dataclassclassPED_ACCBURST:""" Configuration of Accumulate & Burst distribution (DELAY only). .. note:: If the delay is less than minimum latency, value is set to minimum latency. If the delay is greater than maximum latency, value is set to maximum latency. """code:typing.ClassVar[int]=1641pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):delay:int=field(XmpLong())"""long, specifies the burst delay time. Units = nanosecond (must multiples of 100 ns). Default value: minimum latency."""classSetDataAttr(RequestBodyStruct):delay:int=field(XmpLong())"""long, specifies the burst delay time. Units = nanosecond (must multiples of 100 ns). Default value: minimum latency."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Accumulate & Burst distribution (DELAY only). :return: the configuration of Accumulate & Burst distribution (DELAY only) :rtype: PED_ACCBURST.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,delay:int)->Token[None]:"""Set the configuration of Accumulate & Burst distribution (DELAY only). :param delay: specifies the burst delay time. Units = nanosecond (must multiples of 100 ns). Default value: minimum latency. :type delay: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],delay=delay))
[docs]@register_command@dataclassclassPED_STEP:""" Configuration of Step distribution (DELAY only). .. note:: If the low/high is less than minimum latency, value is set to minimum latency. If the low/high is greater than maximum latency, value is set to maximum latency. """code:typing.ClassVar[int]=1642pushed:typing.ClassVar[bool]=False_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):low:int=field(XmpLong())"""long, specifies the packet delay in the 'low' state of the step. Units = nanosecond (must be multiples of 100 ns)."""high:int=field(XmpLong())"""long, specifies the packet delay in the 'high' state of the step. Units = nanosecond (must be multiples of 100 ns)."""classSetDataAttr(RequestBodyStruct):low:int=field(XmpLong())"""long, specifies the packet delay in the 'low' state of the step. Units = nanosecond (must be multiples of 100 ns)."""high:int=field(XmpLong())"""long, specifies the packet delay in the 'high' state of the step. Units = nanosecond (must be multiples of 100 ns)."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the configuration of Step distribution (DELAY only). :return: the configuration of Step distribution (DELAY only) :rtype: PED_STEP.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,low:int,high:int)->Token[None]:"""Set the configuration of Step distribution (DELAY only). :param low: specifies the packet delay in the 'low' state of the step. Units = nanosecond (must be multiples of 100 ns). :type low: int :param high: specifies the packet delay in the 'high' state of the step. Units = nanosecond (must be multiples of 100 ns). :type high: int """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],low=low,high=high))
[docs]@register_command@dataclassclassPED_ENABLE:""" Control whether this impairment distribution is enabled. .. note:: This command is not applicable for PE_BANDPOLICER and PE_BANDSHAPER because they have a separate ``ON / OFF`` parameter. """code:typing.ClassVar[int]=1644pushed:typing.ClassVar[bool]=True_connection:'interfaces.IConnection'_module:int_port:int_flow_xindex:int_impairment_type_xindex:intclassGetDataAttr(ResponseBodyStruct):action:OnOff=field(XmpByte())"""coded byte, specifying whether impairment is enabled."""classSetDataAttr(RequestBodyStruct):action:OnOff=field(XmpByte())"""coded byte, specifying whether impairment is enabled."""
[docs]defget(self)->Token[GetDataAttr]:"""Get the status of this impairment distribution. :return: the status of this impairment distribution :rtype: PED_ENABLE.GetDataAttr """returnToken(self._connection,build_get_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex]))
[docs]defset(self,action:OnOff)->Token[None]:"""Set the status of this impairment distribution. :param action: the status of this impairment distribution :type action: OnOff """returnToken(self._connection,build_set_request(self,module=self._module,port=self._port,indices=[self._flow_xindex,self._impairment_type_xindex],action=action))