blob: ed565f2e3c92398f81031bc37455a5ccc68ae408 [file] [log] [blame]
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -04001# org.onap.dcae
2# ================================================================================
Ladue, David (dl3158)fb0aff82018-03-18 23:16:42 -04003# Copyright (c) 2017-2018 AT&T Intellectual Property. All rights reserved.
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -04004# ================================================================================
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16# ============LICENSE_END=========================================================
17#
18# ECOMP is a trademark and service mark of AT&T Intellectual Property.
19
20import argparse
21import array
22import asyncio
23import collections
24import datetime
25import errno
Ladue, David (dl3158)fb0aff82018-03-18 23:16:42 -040026import inspect
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040027import json
28import logging
29import logging.handlers
30import os
31import pprint
32import re
33import requests
34import signal
35import socket
36import string
37import sys
38import time
39import traceback
Ladue, David (dl3158)fb0aff82018-03-18 23:16:42 -040040import trapd_settings
41import trapd_settings as tds
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040042import unicodedata
43import uuid as uuid_mod
Ladue, David (dl3158)fb0aff82018-03-18 23:16:42 -040044from collections import Counter
45from onap_dcae_cbs_docker_client.client import get_config
46from pysnmp.carrier.asyncio.dgram import udp, udp6
47# from pysnmp.carrier.asyncore.dgram import udp
48from pysnmp.entity import engine, config
49from pysnmp.entity.rfc3413 import ntfrcv
50from pysnmp.proto.api import v2c
51from trapd_exit import cleanup_and_exit
52from trapd_file_utils import roll_all_logs, open_eelf_logs, roll_file, open_file, close_file
53from trapd_get_cbs_config import get_cbs_config
54from trapd_http_session import init_session_obj
55from trapd_logging import ecomp_logger, stdout_logger
56from trapd_logging import stdout_logger
57from trapd_runtime_pid import save_pid, rm_pid
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040058
59install_reqs = parse_requirements("requirements.txt", session=PipSession())
60reqs = [str(ir.req) for ir in install_reqs]
61
62setup(
Ladue, David (dl3158)fb0aff82018-03-18 23:16:42 -040063 name = "dcaegen2-collectors-snmptrap",
64 description = "snmp trap receiver for ONAP docker image",
Ladue, David (dl3158)844c50d2018-08-15 18:11:46 -040065 version = "1.4.0",
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040066 packages=find_packages(),
67 author = "Dave L",
68 author_email = "dl3158@att.com",
69 license='Apache 2',
70 keywords = "",
71 url = "",
72 install_requires=reqs
73)