diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-19 10:32:55 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-19 10:32:55 -0700 |
commit | e660829287cfe516b81e0a2c3048f45d702faac0 (patch) | |
tree | fa8147cf40ff8c6c3db4003eb4d73ed4d1746239 /lib/Vyatta/Qos | |
parent | e955a55bcdf42ee9079e9d9575b53ae8c050c122 (diff) | |
download | vyatta-cfg-qos-e660829287cfe516b81e0a2c3048f45d702faac0.tar.gz vyatta-cfg-qos-e660829287cfe516b81e0a2c3048f45d702faac0.zip |
Detect changes to ethernet match rules
If ethernet match rule changed, then need to flag it.
Diffstat (limited to 'lib/Vyatta/Qos')
-rw-r--r-- | lib/Vyatta/Qos/TrafficShaper.pm | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lib/Vyatta/Qos/TrafficShaper.pm b/lib/Vyatta/Qos/TrafficShaper.pm index 665a47d..eaf2f3b 100644 --- a/lib/Vyatta/Qos/TrafficShaper.pm +++ b/lib/Vyatta/Qos/TrafficShaper.pm @@ -162,6 +162,7 @@ sub commands { sub isChanged { my ( $self, $name ) = @_; my $config = new Vyatta::Config; + my @attributes = qw(bandwidth burst ceiling priority queue-limit queue-type); $config->setLevel("qos-policy traffic-shaper $name"); @@ -169,11 +170,7 @@ sub isChanged { return 'bandwidth'; } - foreach my $attr ( - 'bandwidth', 'burst', 'ceiling', 'priority', - 'queue-limit', 'queue-type' - ) - { + foreach my $attr (@attributes) { if ( $config->isChanged("default $attr") ) { return "default $attr"; } @@ -185,11 +182,7 @@ sub isChanged { return "class $class"; } - foreach my $attr ( - 'bandwidth', 'burst', 'ceiling', 'priority', - 'queue-limit', 'queue-type' - ) - { + foreach my $attr (@attributes) { if ( $config->isChanged("class $class $attr") ) { return "class $class $attr"; } @@ -204,6 +197,9 @@ sub isChanged { foreach my $parm ( 'vif', + 'ether destination', + 'ether source', + 'ether protocol', 'interface', 'ip dscp', 'ip protocol', |