<s> from os_brick . initiator import connector <EOL> from oslo_config import cfg <EOL> from nova import utils <EOL> from nova . virt . libvirt . volume import iscsi <EOL> volume_opts = [ <EOL> cfg . IntOpt ( '<STR_LIT>' , <EOL> default = <NUM_LIT:5> , <EOL> help = '<STR_LIT>' ) , <EOL> cfg . BoolOpt ( '<STR_LIT>' , <EOL> default = False , <EOL> help = '<STR_LIT>' ) , <EOL> ] <EOL> CONF = cfg . CONF <EOL> CONF . register_opts ( volume_opts , '<STR_LIT>' ) <EOL> class LibvirtISERVolumeDriver ( iscsi . LibvirtISCSIVolumeDriver ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , connection ) : <EOL> super ( LibvirtISERVolumeDriver , self ) . __init__ ( connection ) <EOL> self . connector = connector . InitiatorConnector . factory ( <EOL> '<STR_LIT>' , utils . get_root_helper ( ) , <EOL> use_multipath = CONF . libvirt . iser_use_multipath , <EOL> device_scan_attempts = CONF . libvirt . num_iser_scan_tries , <EOL> transport = self . _get_transport ( ) ) <EOL> def _get_transport ( self ) : <EOL> return '<STR_LIT>' </s>
