Esempio n. 1
0
 def ReadXml(p_device_obj, p_in_xml):
     """
     @param p_in_xml: is the e-tree XML house object
     @param p_house: is the text name of the House.
     @return: a dict of the entry to be attached to a house object.
     """
     l_obj = UPBData()
     l_obj.UPBAddress = PutGetXML.get_int_from_xml(p_in_xml, 'UPBAddress', 255)
     l_obj.UPBNetworkID = PutGetXML.get_int_from_xml(p_in_xml, 'UPBNetworkID')
     l_obj.UPBPassword = PutGetXML.get_int_from_xml(p_in_xml, 'UPBPassword')
     stuff_new_attrs(p_device_obj, l_obj)
     return l_obj  # for testing
Esempio n. 2
0
 def ReadXml(p_device_obj, p_in_xml):
     """
     @param p_in_xml: is the e-tree XML house object
     @param p_house: is the text name of the House.
     @return: a dict of the entry to be attached to a house object.
     """
     l_obj = UPBData()
     l_obj.UPBAddress = PutGetXML.get_int_from_xml(p_in_xml, 'UPBAddress',
                                                   255)
     l_obj.UPBNetworkID = PutGetXML.get_int_from_xml(
         p_in_xml, 'UPBNetworkID')
     l_obj.UPBPassword = PutGetXML.get_int_from_xml(p_in_xml, 'UPBPassword')
     stuff_new_attrs(p_device_obj, l_obj)
     return l_obj  # for testing
Esempio n. 3
0
 def _initilaize_pim(p_controller_obj):
     """Initialize a new UPBData object.
     """
     l_pim = UPBData()
     l_pim.InterfaceType = p_controller_obj.InterfaceType
     l_pim.Name = p_controller_obj.Name
     l_pim.UPBAddress = p_controller_obj.UPBAddress
     l_pim.UPBPassword = p_controller_obj.UPBPassword
     l_pim.UPBNetworkID = p_controller_obj.UPBNetworkID
     LOG.info('Initializing UPB PIM named: {}, Type={}'.format(
         l_pim.Name, l_pim.InterfaceType))
     LOG.debug(PrettyFormatAny.form(l_pim, 'PIM data'))
     return l_pim
Esempio n. 4
0
 def _initilaize_pim(p_controller_obj):
     """Initialize a new UPBData object.
     """
     l_pim = UPBData()
     l_pim.InterfaceType = p_controller_obj.InterfaceType
     l_pim.Name = p_controller_obj.Name
     l_pim.UPBAddress = p_controller_obj.UPBAddress
     l_pim.UPBPassword = p_controller_obj.UPBPassword
     l_pim.UPBNetworkID = p_controller_obj.UPBNetworkID
     LOG.info('Initializing UPB PIM named: {}, Type={}'.format(l_pim.Name, l_pim.InterfaceType))
     LOG.debug(PrettyFormatAny.form(l_pim, 'PIM data'))
     return l_pim