summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-04 17:41:49 -0800
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-03-04 17:41:49 -0800
commit70d55c3c9e44ad501442ea879f4fdcba9c59963f (patch)
treee37a9c05645f41661227a6b917d72064ce843a52
parent597e327943125675d14083e910a84d3f63e30574 (diff)
downloadvyatta-cfg-qos-70d55c3c9e44ad501442ea879f4fdcba9c59963f.tar.gz
vyatta-cfg-qos-70d55c3c9e44ad501442ea879f4fdcba9c59963f.zip
remove dead code in qos script
The function validate_name is no longer used.
-rwxr-xr-xscripts/vyatta-qos.pl19
1 files changed, 0 insertions, 19 deletions
diff --git a/scripts/vyatta-qos.pl b/scripts/vyatta-qos.pl
index ddbefe9..db4d7bd 100755
--- a/scripts/vyatta-qos.pl
+++ b/scripts/vyatta-qos.pl
@@ -38,25 +38,6 @@ sub list_policy {
print join( ' ', @nodes ), "\n";
}
-## check if name is okay
-sub validate_name {
- my ($policy, $name) = @_;
- my $config = new VyattaConfig;
-
- ($name =~ '^\w[\w_-]*$') or die "Invalid policy name $name\n";
-
- foreach my $p ($config->listNodes($qosNode) ) {
- if ($p ne $policy) {
- foreach my $n ($config->listNodes("$qosNode $policy") ) {
- if ($n eq $name) {
- die "Name $name is already in use by $p\n";
- }
- }
- }
- }
-}
-
-
## delete_interface('eth0', 'out')
# remove all filters and qdisc's
sub delete_interface {