def cfg_lldp_interface(self, protocol_interface, phy_interface=None):
if phy_interface is None:<EOL><INDENT>phy_interface = protocol_interface<EOL><DEDENT>self.create_attr_obj(protocol_interface, phy_interface)<EOL>ret = self.pub_lldp.enable_lldp(protocol_interface)<EOL>attr_obj = self.get_attr_obj(protocol_interface)<EOL>attr_obj.update_lldp_status(ret)<EOL>
Cfg LLDP on interface and create object.