Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
sw2090
Honored Contributor

Make CLI accept tab-stop formatted configs

currently tabstops in config cause dublication of command they are in front of and this causes syntax errors in consequence.

Would be much easier if CLI would understand tabstops.

-- 

"It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams

-- "It is a mistake to think you can solve any major problems just with potatoes." - Douglas Adams
1 REPLY 1
lobstercreed
Valued Contributor

Easy solution: use Notepad++ to clean up your config before pasting into CLI.

 

For example this:

 

config log null-device setting
set status disable
end
config log setting
set fwpolicy6-implicit-log enable
set local-in-allow enable
set local-out enable
end
config log gui-display
set location fortianalyzer
end

 

Becomes this:

 

config log null-device setting
set status disable
end
config log setting
set fwpolicy6-implicit-log enable
set local-in-allow enable
set local-out enable
end
config log gui-display
set location fortianalyzer
end

 

If you simply paste it into Notepad++, select all, and choose Edit > Blank Operations > Trim Leading Space

 

This solves the issue on many platforms where the config spits out with tabs and you want to copy paste without the tabs.

 

- Daniel Hamilton

Labels
Top Kudoed Authors