From df7114e9df148e0b7a1813297824684158d15efa Mon Sep 17 00:00:00 2001 From: Nigel Kukard <nkukard@lbsd.net> Date: Sun, 12 Jan 2014 08:28:34 +0000 Subject: [PATCH] Added CONFLICT shaper state, renumbered constants --- opentrafficshaper/constants.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/opentrafficshaper/constants.pm b/opentrafficshaper/constants.pm index 4aecee3..9b31788 100644 --- a/opentrafficshaper/constants.pm +++ b/opentrafficshaper/constants.pm @@ -33,6 +33,7 @@ our (@ISA,@EXPORT,@EXPORT_OK); SHAPER_NOTLIVE SHAPER_PENDING SHAPER_LIVE + SHAPER_CONFLICT ); @@ -41,9 +42,9 @@ our (@ISA,@EXPORT,@EXPORT_OK); # CFGM_ONLINE - Online # CFGM_CHANGED - Changed use constant { - CFGM_OFFLINE => 0, - CFGM_CHANGED => 1, - CFGM_ONLINE => 2, + CFGM_OFFLINE => 1, + CFGM_CHANGED => 2, + CFGM_ONLINE => 3, CFGM_NEW => 4, }; @@ -51,10 +52,12 @@ use constant { # 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 +# SHAPER_CONFLICT - Item is in conflict use constant { - SHAPER_NOTLIVE => 0, - SHAPER_PENDING => 1, - SHAPER_LIVE => 2, + SHAPER_NOTLIVE => 1, + SHAPER_PENDING => 2, + SHAPER_LIVE => 4, + SHAPER_CONFLICT => 8, }; -- GitLab