Project

General

Custom queries

Profile

Actions

Bug #3077

closed

GTS kind

Added by Dosme Nicolas over 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Low
Assigned To:
Category:
-
Start date:
08/24/2012
Due date:
% Done:

0%

Estimated time:

Description

If we create a new gts with a bad 'kind' for example 'fanin_fanout' there is no errors. But in code it seems to be an enumerate type...
if the kind is bad, when we get_information from the GTS the kind is empty.

gec@vmware:/tools/TM/bin$ ./tm_xml_access CREATE_DEVICE "<devices><device device_type=\"gts\" name=\"gts999\" kind=\"fanin_fanout\" slot=\"1\" port=\"1\" host_port=\"1\" board_version=\"000\" firmware_version=\"000\" embd_soft_version=\"000\" host_soft_version=\"000\" mac_address=\"0x1F0F00\" status=\"off\"></device></devices>" 
The device <devices><device device_type="gts" name="gts999" kind="fanin_fanout" slot="1" port="1" host_port="1" board_version="000" firmware_version="000" embd_soft_version="000" host_soft_version="000" mac_address="0x1F0F00" status="off"></device></devices> was successfully created !!

gec@vmware:/tools/TM/bin$ ./tm_xml_access GET_information gts999<devices><device device_type="gts" name="gts999" kind=" " slot="1" port="1" host_port="1" board_version="000" firmware_version="000" embd_soft_version="000" host_soft_version="000" mac_address="0x1F0F00" status="off"></device></devices>

gec@vmware:/tools/TM/bin$ ./tm_xml_access CREATE_DEVICE "<devices><device device_type=\"gts\" name=\"gts998\" kind=\"fanin_fanout\" slot=\"1\" port=\"1\" host_port=\"1\" board_version=\"000\" firmware_version=\"000\" embd_soft_version=\"000\" host_soft_version=\"000\" mac_address=\"0x1F0F00\" status=\"off\"></device></devices>" 
The device <devices><device device_type="gts" name="gts998" kind="fanin_fanout" slot="1" port="1" host_port="1" board_version="000" firmware_version="000" embd_soft_version="000" host_soft_version="000" mac_address="0x1F0F00" status="off"></device></devices> was successfully created !!

gec@vmware:/tools/TM/bin$ ./tm_xml_access GET_information gts998<devices><device device_type="gts" name="gts998" kind=" " slot="1" port="1" host_port="1" board_version="000" firmware_version="000" embd_soft_version="000" host_soft_version="000" mac_address="0x1F0F00" status="off"></device></devices>

Actions #1

Updated by Grave Xavier about 12 years ago

  • Status changed from New to Closed
  • Assigned To set to Grave Xavier

new topology manager doesn't show this problem :
xavier@monokeros:~/topology-manager-lab/topology-manager-dev$ ./bin/tm_xml_access CREATE_DEVICE "<devices><device device_type=\"gts\" name=\"gts999\" kind=\"fanin_fanout\" slot=\"1\" port=\"1\" host_port=\"1\" board_version=\"000\" firmware_version=\"000\" embd_soft_version=\"000\" host_soft_version=\"000\" mac_address=\"0x1F0F00\" status=\"off\"></device></devices>"
Device Created gts999
xavier@monokeros:~/topology-manager-lab/topology-manager-dev$ ./bin/tm_xml_access GET_information gts999
<devices><device device_type="gts" kind="fanin_fanout" slot="1" port="1" host_port="1" board_version="000" firmware_version="000" embd_soft_version="000" host_soft_version="000" name="gts999" mac_address="0x1F0F00" id="56" status="off"/></devices>
xavier@monokeros:~/topology-manager-lab/topology-manager-dev$ ./bin/tm_xml_access CREATE_DEVICE "<devices><device device_type=\"gts\" name=\"gts998\" kind=\"fanin_fanout\" slot=\"1\" port=\"1\" host_port=\"1\" board_version=\"000\" firmware_version=\"000\" embd_soft_version=\"000\" host_soft_version=\"000\" mac_address=\"0x1F0F00\" status=\"off\"></device></devices>"
Device Created gts998
xavier@monokeros:~/topology-manager-lab/topology-manager-dev$ ./bin/tm_xml_access GET_information gts998
<devices><device device_type="gts" kind="fanin_fanout" slot="1" port="1" host_port="1" board_version="000" firmware_version="000" embd_soft_version="000" host_soft_version="000" name="gts998" mac_address="0x1F0F00" id="57" status="off"/></devices>

Gts kind is inforced in the data base see : file database/database.sql line 46 :
create type Gts_Type AS ENUM ('root', 'fanin_fanout', 'leaf');

Actions

Also available in: Atom PDF