def enable_lldp(self, port_name, is_ncb=True, is_nb=False):
reply = None<EOL>if is_ncb:<EOL><INDENT>reply = self.run_lldptool(["<STR_LIT>", "<STR_LIT>", port_name, "<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>"])<EOL><DEDENT>elif is_nb:<EOL><INDENT>reply = self.run_lldptool(["<STR_LIT>", "<STR_LIT>", port_name, "<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>"])<EOL><DEDENT>else:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>")<EOL>return False<EOL><DEDENT>if reply is None:<EOL><INDENT>return False<EOL><DEDENT>exp_str = "<STR_LIT>"<EOL>if exp_str in reply.replace("<STR_LIT:U+0020>", "<STR_LIT>").lower():<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>return False<EOL><DEDENT>
Function to enable LLDP on the interface.