summaryrefslogtreecommitdiffstats
path: root/vstf/vstf/agent/spirent
diff options
context:
space:
mode:
Diffstat (limited to 'vstf/vstf/agent/spirent')
-rwxr-xr-xvstf/vstf/agent/spirent/__init__.py20
-rwxr-xr-xvstf/vstf/agent/spirent/spirent.py15
2 files changed, 19 insertions, 16 deletions
diff --git a/vstf/vstf/agent/spirent/__init__.py b/vstf/vstf/agent/spirent/__init__.py
index 89dcd4e2..83b8d15d 100755
--- a/vstf/vstf/agent/spirent/__init__.py
+++ b/vstf/vstf/agent/spirent/__init__.py
@@ -1,14 +1,8 @@
-# Copyright Huawei Technologies Co., Ltd. 1998-2015.
-# All Rights Reserved.
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
#
-# Licensed under the Apache License, Version 2.0 (the License); you may
-# not use this file except in compliance with the License. You may obtain
-# a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an AS IS BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations
-# under the License.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
diff --git a/vstf/vstf/agent/spirent/spirent.py b/vstf/vstf/agent/spirent/spirent.py
index 3b073cbf..904de736 100755
--- a/vstf/vstf/agent/spirent/spirent.py
+++ b/vstf/vstf/agent/spirent/spirent.py
@@ -1,4 +1,13 @@
-#!/usr/bin/python
+##############################################################################
+# Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+
import Tkinter
@@ -17,7 +26,7 @@ class stcPython():
self.stcpkg = '/home/Spirent_TestCenter_4.46/Spirent_TestCenter_Application_Linux'
self.tclsh.eval("set auto_path [ linsert $auto_path 0 %s ]" %(self.stcpkg))
self.tclsh.eval("package require SpirentTestCenter")
-
+
def build_cmd(self, *args):
cmd = ''
for arg in args:
@@ -107,7 +116,7 @@ class stcPython():
#pdb.set_trace()
cmd = port_name+' -location //'+chassisAddress+'/'+slot+'/'+port+' -UseDefaultHost False'
return self.stc_config(cmd)
- # create streamblock under port
+ # create streamblock under port
# return: streamblock name
def stc_create_streamblock(self,port_name,vlan_tag,ExpectedRxPort,srcMac,dstMac,sourceAddr,destAddr):
#import pdb