##
import json
import logging
-import random
+from random import SystemRandom
from json import JSONDecodeError
import yaml
vnfr: object = None,
vnfd: object = None,
):
- cor_id = random.randint(1, 10e7)
+ cor_id = SystemRandom().randint(1, 10e7)
msg = self._build_create_alarm_payload(
cor_id,
metric_name,
async def delete_alarm(
self, ns_id: str, vnf_member_index: str, vdu_name: str, alarm_uuid: str
):
- cor_id = random.randint(1, 10e7)
+ cor_id = SystemRandom().randint(1, 10e7)
msg = self._build_delete_alarm_payload(
cor_id, ns_id, vdu_name, vnf_member_index, alarm_uuid
)