Ladue, David (dl3158) | ba9a312 | 2018-01-23 10:25:08 -0500 | [diff] [blame^] | 1 | # org.onap.dcae |
| 2 | # ================================================================================ |
| 3 | # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. |
| 4 | # ================================================================================ |
| 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 | |
| 20 | import argparse |
| 21 | import array |
| 22 | import asyncio |
| 23 | import collections |
| 24 | import datetime |
| 25 | import errno |
| 26 | from pysnmp.carrier.asyncio.dgram import udp, udp6 |
| 27 | from pysnmp.entity import engine, config |
| 28 | from pysnmp.entity.rfc3413 import ntfrcv |
| 29 | from pysnmp.proto.api import v2c |
| 30 | import json |
| 31 | import logging |
| 32 | import logging.handlers |
| 33 | import os |
| 34 | import pprint |
| 35 | import re |
| 36 | import requests |
| 37 | import signal |
| 38 | import socket |
| 39 | import string |
| 40 | import sys |
| 41 | import time |
| 42 | import traceback |
| 43 | from trapd_dmaap_config import read_dmaap_config |
| 44 | from trapd_exit import cleanup_and_exit |
| 45 | from trapd_http_session import init_session_obj |
| 46 | from trapd_perm_status import log_to_perm_status |
| 47 | from trapd_runtime_pid import save_pid, rm_pid |
| 48 | from trapd_trap_config import read_trap_config |
| 49 | from trapd_yaml_config import read_yaml_config |
| 50 | import unicodedata |
| 51 | import uuid as uuid_mod |
| 52 | import yaml |
| 53 | |
| 54 | install_reqs = parse_requirements("requirements.txt", session=PipSession()) |
| 55 | reqs = [str(ir.req) for ir in install_reqs] |
| 56 | |
| 57 | setup( |
| 58 | name = "dcaegen2_collectors_snmptrap", |
| 59 | description = "snmp trap receiver for a DCAE docker image", |
| 60 | version = "1.0", |
| 61 | packages=find_packages(), |
| 62 | author = "Dave LaDue", |
| 63 | author_email = "dl3158@att.com", |
| 64 | license='Apache 2', |
| 65 | keywords = "", |
| 66 | url = "", |
| 67 | install_requires=reqs |
| 68 | ) |