minor 41/5341/1
authorYaroslav Brustinov <[email protected]>
Sun, 1 Jan 2017 00:55:59 +0000 (02:55 +0200)
committerYaroslav Brustinov <[email protected]>
Sun, 1 Jan 2017 01:00:29 +0000 (03:00 +0200)
Change-Id: Ibf02ca9bb5e2f2a6e6c0a498dc8ce889069acb56
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/dpdk_setup_ports.py
src/platform_cfg.cpp

index 9ad1a82..fd2361e 100755 (executable)
@@ -403,13 +403,13 @@ Other network devices
         stream.close();
         cfg_dict = self.m_cfg_dict[0]
         if 'version' not in cfg_dict:
-            raise DpdkSetup("Configuration file %s is old, should include version field\n" % fcfg )
+            raise DpdkSetup("Configuration file %s is old, it should include version field\n" % fcfg )
 
         if int(cfg_dict['version'])<2 :
             raise DpdkSetup("Configuration file %s is old, expected version 2, got: %s\n" % (fcfg, cfg_dict['version']))
 
         if 'interfaces' not in self.m_cfg_dict[0]:
-            raise DpdkSetup("Configuration file %s is old, should include interfaces field even number of elemets" % fcfg)
+            raise DpdkSetup("Configuration file %s is old, it should include interfaces field with even number of elements" % fcfg)
 
         if_list=self.m_cfg_dict[0]['interfaces']
         l=len(if_list);
index 6aae450..92b4e7e 100755 (executable)
@@ -345,10 +345,11 @@ void operator >> (const YAML::Node& node, CPlatformYamlInfo & plat_info) {
     /* must have interfaces */
     const YAML::Node& interfaces = node["interfaces"];
     if ( interfaces.size() > TREX_MAX_PORTS ) {
-        printf("ERROR: Maximal number of interfaces is: %d, and you have specified: %d.\n",
+        printf("ERROR: Maximal number of interfaces is: %d, you have specified: %d.\n",
                     TREX_MAX_PORTS, (int) interfaces.size());
         exit(-1);
     }
+
     for(unsigned i=0;i<interfaces.size();i++) {
         std::string  fi;
         const YAML::Node & node = interfaces;