rtslib/target.py
def _set_nexus(self, nexus_wwn=None):
        '''
        Sets the nexus initiator WWN. Raises an exception if the nexus is
        already set or if the TPG does not use a nexus.
        '''
        self._check_self()

        if not self.has_feature('nexus'):
            raise RTSLibError("The TPG does not use a nexus")
        if self._get_nexus():
            raise RTSLibError("The TPG's nexus initiator WWN is already set")

        fm = self.parent_target.fabric_module

        if nexus_wwn:
            nexus_wwn = fm.to_normalized_wwn(nexus_wwn)[0]
        else:
            # Nexus wwn type should match parent target
            nexus_wwn = generate_wwn(self.parent_target.wwn_type)

        fwrite("%s/nexus" % self.path, fm.to_fabric_wwn(nexus_wwn))

        Sets the nexus initiator WWN. Raises an exception if the nexus is
        already set or if the TPG does not use a nexus.
        
Sets the nexus initiator WWN. Raises an exception if the nexus is
already set or if the TPG does not use a nexus.
Sets the nexus initiator WWN . Raises an exception if the nexus is already set or if the TPG does not use a nexus .
def _set_nexus(self, nexus_wwn=None):
        self._check_self()
        if not self.has_feature('nexus'):
            raise RTSLibError("The TPG does not use a nexus")
        if self._get_nexus():
            raise RTSLibError("The TPG's nexus initiator WWN is already set")
        fm = self.parent_target.fabric_module
        if nexus_wwn:
            nexus_wwn = fm.to_normalized_wwn(nexus_wwn)[0]
        else:
            nexus_wwn = generate_wwn(self.parent_target.wwn_type)
        fwrite("%s/nexus" % self.path, fm.to_fabric_wwn(nexus_wwn))
def _set_nexus ( self , nexus_wwn = None ) : self . _check_self ( ) if not self . has_feature ( 'nexus' ) : raise RTSLibError ( "The TPG does not use a nexus" ) if self . _get_nexus ( ) : raise RTSLibError ( "The TPG's nexus initiator WWN is already set" ) fm = self . parent_target . fabric_module if nexus_wwn : nexus_wwn = fm . to_normalized_wwn ( nexus_wwn ) [ 0 ] else : nexus_wwn = generate_wwn ( self . parent_target . wwn_type ) fwrite ( "%s/nexus" % self . path , fm . to_fabric_wwn ( nexus_wwn ) )
Sets the nexus initiator WWN.
Sets the nexus initiator WWN .
'''
        Sets the nexus initiator WWN. Raises an exception if the nexus is
        already set or if the TPG does not use a nexus.
        ''' # Nexus wwn type should match parent target
self
nexus_wwn