From f815b9dc1ea47dbf8353e8e2f45658bc2233cca8 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 27 May 2024 09:02:09 +0200 Subject: [PATCH] fix token welcome_state pandora_enterprise#13801 --- pandora_console/extras/mr/69.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/extras/mr/69.sql b/pandora_console/extras/mr/69.sql index 1516d15d5d..3a4b9a0f90 100644 --- a/pandora_console/extras/mr/69.sql +++ b/pandora_console/extras/mr/69.sql @@ -7785,4 +7785,9 @@ WHERE `content`= 'expect:root@% cli\n expect:root>& UPDATE `tncm_script` SET `content` ='expect:root@% cli\n expect:root> capture:show version|match Junos:\n quit\n expect:root@% exit\n' WHERE `content`='expect:root@% cli\n expect:root> capture:show version|match Junos:\n capture: \n quit\n expect:root@% exit\n'; +SET @id_token_welcome_state = NULL; +SET @token_name_welcome_state = 'welcome_state'; +SELECT @id_token_welcome_state := `id_config` FROM `tconfig` WHERE `token` = @token_name_welcome_state ORDER BY `id_config` DESC LIMIT 1; +DELETE FROM `tconfig` WHERE `token` = @token_name_welcome_state AND `id_config` != @id_token_welcome_state; + COMMIT; \ No newline at end of file