Code Review
/
oam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add a FlowManagement Component
[oam.git]
/
code
/
client-scripts-ves-v7
/
sendStndDefinedNotifyAlarm.sh
diff --git
a/code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh
b/code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh
index
647f35e
..
a1a0fbb
100755
(executable)
--- a/
code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh
+++ b/
code/client-scripts-ves-v7/sendStndDefinedNotifyAlarm.sh
@@
-55,6
+55,7
@@
declare -A mapping=(
echo "################################################################################";
echo "# send NotifyNewAlarm or NotifyClearedAlarm";
echo;
echo "################################################################################";
echo "# send NotifyNewAlarm or NotifyClearedAlarm";
echo;
+echo " alarmEventType: $raised"
for key in "${!mapping[@]}"
do
#label=${${"$spaces$i"}:(-14)};
for key in "${!mapping[@]}"
do
#label=${${"$spaces$i"}:(-14)};
@@
-74,5
+75,3
@@
template="./json/templates/$domain-r16-notify-${raised,,}-alarm.json"
sed -e "$sequence" $template > $body;
curl -i -k -u $basicAuthVes -X POST -d @${body} --header "Content-Type: application/json" $urlVes
sed -e "$sequence" $template > $body;
curl -i -k -u $basicAuthVes -X POST -d @${body} --header "Content-Type: application/json" $urlVes
-
-#curl -i -k -u "sample1:sample1" -X POST -d @./json/examples/NSKY-lossOfSignal-CRITICAL-stndDefined.json --header "Content-Type: application/json" https://localhost:8443/eventListener/v7
\ No newline at end of file