Update STL API version to 3.0 30/5330/1
authorYaroslav Brustinov <[email protected]>
Sun, 25 Dec 2016 13:07:27 +0000 (15:07 +0200)
committerYaroslav Brustinov <[email protected]>
Sun, 25 Dec 2016 13:07:27 +0000 (15:07 +0200)
Change-Id: Ib00cdc8f960522e54414cfda5ae7778887a9d0ec
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py
src/stateless/cp/trex_stateless.cpp

index 79ed3a3..e163d51 100755 (executable)
@@ -546,7 +546,7 @@ class STLClient(object):
         self.connected = False
 
         # API classes
-        self.api_vers = [ {'type': 'core', 'major': 2, 'minor': 3 } ]
+        self.api_vers = [ {'type': 'core', 'major': 3, 'minor': 0 } ]
         self.api_h = {'core': None}
 
         # logger
index 0a7f853..c31ba0a 100644 (file)
@@ -54,8 +54,8 @@ TrexStateless::TrexStateless(const TrexStatelessCfg &cfg) {
     m_publisher    = cfg.m_publisher;
 
     /* API core version */
-    const int API_VER_MAJOR = 2;
-    const int API_VER_MINOR = 3;
+    const int API_VER_MAJOR = 3;
+    const int API_VER_MINOR = 0;
     m_api_classes[APIClass::API_CLASS_TYPE_CORE].init(APIClass::API_CLASS_TYPE_CORE,
                                                       API_VER_MAJOR,
                                                       API_VER_MINOR);