On 02/27/2014 10:47 PM, Jerome Martin wrote: > But that would be overkill, as you could just create a "snippet.lio" > config file like this: >> storage iblock disk sdb path /dev/sdb >> fabric iscsi target >> iqn.2003-01.org.linux-iscsi.x.x8664:sn.d3d8b0500fde tpgt 1 { >> portal 192.168.1.128:5060 >> lun 0 backend iblock:sdb >> acl iqn.2003-01.org.linux-iscsi.y.x8664:sn.abcdefghijkl mapped_lun >> 0 target_lun 0 >> } > And simply load it from the lio cli using "load snippet.lio" in config > mode, or "merge snippet.lio" if you want to merge that to the current > configuration. Then you just need to issue 'commit' when your > configuration is ready to be applied on the system and saved as the next > startup config. You may also want to have a "validate snippet.lio", called internally, to validate the syntax. Almost all big projects, with large configuration files, do so. > > But the lio cli is more practical for that kind of small snippets: you > enter the same amount of text, exactly the same statements, but get > autocompletion to help you type it :-) Also it will check the values > type as soon as you enter them, provide you with unlimited undo levels, > rollback to the last commited configuration, etc. -- Given the large number of mailing lists I follow, I request you to CC me in replies for quicker response
Attachment:
signature.asc
Description: OpenPGP digital signature