import getopt
import json
import requests
-from globalVesEventEmitter import getInitData, saveExample
+from globalVesEventEmitter import getInitData, saveExample, sendVesEvent
# Construct VES body and send
def performJob(domain, pnfId):
saveExample(initData)
# Send VES Event
- url = initData['config']['vesEndpoint']['url']
- username = initData['config']['vesEndpoint']['username']
- password = initData['config']['vesEndpoint']['password']
- verify = initData['config']['vesEndpoint']['verify']
- response = requests.post(url, json=initData['body'], auth=(
- username, password), verify=verify)
- print(response)
-
-# Analysing command line parameters
+ sendVesEvent(initData)
+# Analysing command line parameters
def main(argv):
domain = 'notification'
usage = 'sendVesNotification.py --pnfId <physical-network-function-nwuid>'