From 8bbcdf63bcae653ac72b471592150075a4242f3c Mon Sep 17 00:00:00 2001 From: Nigel Kukard <nkukard@lbsd.net> Date: Thu, 2 Jan 2014 21:33:49 +0000 Subject: [PATCH] Added constants for configmanager status --- opentrafficshaper/constants.pm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/opentrafficshaper/constants.pm b/opentrafficshaper/constants.pm index f26d49c..072c02e 100644 --- a/opentrafficshaper/constants.pm +++ b/opentrafficshaper/constants.pm @@ -25,12 +25,29 @@ require Exporter; our (@ISA,@EXPORT,@EXPORT_OK); @ISA = qw(Exporter); @EXPORT = qw( + CFGM_NEW + CFGM_OFFLINE + CFGM_ONLINE + CFGM_CHANGED + SHAPER_NOTLIVE SHAPER_PENDING SHAPER_LIVE ); +# CFGM_NEW - New +# CFGM_OFFLINE - Offline +# CFGM_ONLINE - Online +# CFGM_CHANGED - Changed +use constant { + CFGM_OFFLINE => 0, + CFGM_CHANGED => 1, + CFGM_ONLINE => 2, + CFGM_NEW => 4, +}; + + # SHAPER_NOTLIVE - Nothing is going on yet, something should happen # SHAPER_PENDING - Waiting on shaper to do a change # SHAPER_LIVE - Shaper is up to date with our config -- GitLab