fix token welcome_state pandora_enterprise#13801

This commit is contained in:
daniel 2024-05-27 09:02:09 +02:00
parent 6454b5787b
commit f815b9dc1e
1 changed files with 5 additions and 0 deletions

View File

@ -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;