diff --git a/opentrafficshaper/constants.pm b/opentrafficshaper/constants.pm index f26d49c936085f234b6c756d471d436c5c0a1d74..072c02e897335b7ee9f79e456268c05769ed397d 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