diff --git a/flowspec/viewsets.py b/flowspec/viewsets.py index b9fe1005df4a49eb82e70a626ddc7c9018e2e78b..9a9ba33f6390df7f11c192b630de0af12cf31f3e 100644 --- a/flowspec/viewsets.py +++ b/flowspec/viewsets.py @@ -125,8 +125,11 @@ class RouteViewSet(viewsets.ModelViewSet): elif requested_status == "INACTIVE": route.status = "INACTIVE" route.save() + announce("[%s] new inactive Rule added: %s" % (route.applier_username_nice, route.name_visible), route.applier, route) else: route.save() + announce("[%s] new non-active Rule added: %s" % (route.applier_username_nice, route.name_visible), route.applier, route) + obj.data["status"] = route.status logger.info("RouteViewSet::create(): => route="+str(route)) logger.info("RouteViewSet::create(): => route.status="+str(route.status)) diff --git a/templates/pollerdash.js b/templates/pollerdash.js index 94ca00a8c1ad57dbd5e6978cf61a8d873dd9bcdd..19902f401d43384a9e914dae425421501e84c3ac 100644 --- a/templates/pollerdash.js +++ b/templates/pollerdash.js @@ -178,7 +178,7 @@ var updater = { updater.showMessage(messages[i], peerid); try { body = messages[i].body - if (body.match(/Successfully committed$/) || body.match(/Deleting inactive/) || body.match(/NETCONF/) || body.match(/non-flowspec-params updated/)) { + if (body.match(/Successfully committed$/) || body.match(/Deleting inactive/) || body.match(/NETCONF/) || body.match(/non-flowspec-params updated/) || body.match(/Rule/) || body.match(/Please wait/)) { reloadContent = true; } } catch (e) {