Bug 1118594

Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: Hardware instance has no attribute 'type'
Product: Red Hat Enterprise Linux 5 Reporter: Vivek Kumar <jsr.vivek.kr>
Component: system-config-networkAssignee: Harald Hoyer <harald>
Status: CLOSED DUPLICATE QA Contact: qe-baseos-daemons
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.10CC: jsr.vivek.kr
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-18 08:50:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Attachments:
Description Flags
contains the Bug thrown none

Description Vivek Kumar 2014-07-11 07:03:47 UTC
Created attachment 917256 [details]
contains the Bug thrown

Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Harald Hoyer 2014-08-18 08:49:37 UTC
Component: system-config-network
Version: 1.3.99.21
Summary: TBf6c835f4 NCHardwareList.py:482:save:AttributeError: Hardware instance has no attribute 'type'

Traceback (most recent call last):
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 781, in on_applyButton_clicked
    self.save()
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 370, in save
    self.saveHardware()
  File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 398, in saveHardware
    hardwarelist.save()
  File "/usr/share/system-config-network/netconfpkg/NCHardwareList.py", line 482, in save
    if (hw.Type == ETHERNET or \
AttributeError: Hardware instance has no attribute 'type'

Local variables in innermost frame:
self: HardwareList.Ethernet.eth0.Status=system
HardwareList.Ethernet.eth0.Name=eth0
HardwareList.Ethernet.eth0.Type=Ethernet
HardwareList.Ethernet.eth0.Card.ModuleName=igb
HardwareList.Ethernet.eth0.Description=Intel Corporation I350 Gigabit Network Connection
HardwareList.Ethernet.dev11519.Status=system
HardwareList.Ethernet.dev11519.Name=dev11519
HardwareList.Ethernet.dev11519.Type=Ethernet
HardwareList.Ethernet.dev11519.Card.ModuleName=igb
HardwareList.Ethernet.dev11519.Description=Intel Corporation I350 Gigabit Network Connection
HardwareList.Ethernet.eth2.Status=system
HardwareList.Ethernet.eth2.Name=eth2
HardwareList.Ethernet.eth2.Type=Ethernet
HardwareList.Ethernet.eth2.Card.ModuleName=igb
HardwareList.Ethernet.eth2.Description=Intel Corporation I350 Gigabit Network Connection
HardwareList.Ethernet.eth3.Status=system
HardwareList.Ethernet.eth3.Name=eth3
HardwareList.Ethernet.eth3.Type=Ethernet
HardwareList.Ethernet.eth3.Card.ModuleName=igb
HardwareList.Ethernet.eth3.Description=Intel Corporation I350 Gigabit Network Connection
HardwareList.Ethernet.usb0.Status=system
HardwareList.Ethernet.usb0.Name=usb0
HardwareList.Ethernet.usb0.Type=Ethernet
HardwareList.Ethernet.usb0.Card.ModuleName=cdc_ether
HardwareList.Ethernet.usb0.Description=IBM Corp. RNDIS/Ethernet Gadget
HardwareList.BOND.bond0.Status=configured
HardwareList.BOND.bond0.Name=bond0
HardwareList.BOND.bond0.Type=BOND
HardwareList.BOND.bond0.Card.ModuleName=bonding
HardwareList.BOND.bond0.Description=bonding
HardwareList.Ethernet.eth1.Status=configured
HardwareList.Ethernet.eth1.Name=eth1
HardwareList.Ethernet.eth1.Type=Ethernet
HardwareList.Ethernet.eth1.Card.ModuleName=igb
HardwareList.Ethernet.eth1.Description=igb

modules: <netconfpkg.NCHardwareList.MyConfModules instance at 0x19b2fcf8>
hw: Hardware.Status=configured
Hardware.Name=bond0
Hardware.Type=BOND
Hardware.Card.ModuleName=bonding
Hardware.Description=bonding

wvdial: <rhpl.ConfSMB.ConfSMB instance at 0x19b30320>
type: Ethernet
isdn: <netconfpkg.NCisdnhardware.ConfISDN instance at 0x19b42128>
mod: eth1

Comment 2 Harald Hoyer 2014-08-18 08:50:01 UTC

*** This bug has been marked as a duplicate of bug 955310 ***