From 8db010d9ca01583741edaf0aefdffc14704b6275 Mon Sep 17 00:00:00 2001 From: Kumar Harsh Date: Thu, 1 Dec 2016 12:45:00 +0530 Subject: [PATCH] Remove traffic class option --tc from qosmap.py . This will be handled in vrouter qosmap utility. Change-Id: Ib12b90b7da69d2afee450286ca4a1891aee893f6 Closes-Bug: #1640065 --- src/vnsw/agent/contrail/qosmap.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/vnsw/agent/contrail/qosmap.py b/src/vnsw/agent/contrail/qosmap.py index eabb5fc258e..c596214f7f7 100644 --- a/src/vnsw/agent/contrail/qosmap.py +++ b/src/vnsw/agent/contrail/qosmap.py @@ -14,7 +14,7 @@ def __init__(self, conf_file): self.conf_file = conf_file self._parse_args() qos_cmd = '/usr/bin/qosmap --set-queue ' + self.ifname + ' --dcbx ' + self.dcbx - qos_cmd = qos_cmd + ' --bw ' + self.bandwidth + ' --strict ' + self.scheduling + ' --tc ' + self.traffic_class + qos_cmd = qos_cmd + ' --bw ' + self.bandwidth + ' --strict ' + self.scheduling self.execute_command(qos_cmd) # end __init__ @@ -27,7 +27,6 @@ def _parse_args(self): self.priority_group = [] self.bandwidth = [] self.scheduling = [] - self.traffic_class = [] scheduling = "" bandwidth = "" config = ConfigParser.SafeConfigParser() @@ -51,12 +50,11 @@ def _parse_args(self): bandwidth = config.get(section, 'bandwidth') self.bandwidth[int(priority_id)] = bandwidth - self.priority_group = [elem for elem in self.priority_group if elem != '0'] - self.traffic_class = ",".join(self.priority_group) + self.priority_group = [elem for elem in self.priority_group] self.bandwidth = ",".join(self.bandwidth) self.scheduling = "".join(self.scheduling) - if (self.traffic_class == ""): - print "Please configure qos parameters" + if (self.priority_group == ""): + print "Please configure priority groups" # end _parse_args