def _initialize_trunk_interfaces_to_none(self, switch_ip, replay=True):
try:<EOL><INDENT>switch_ifs = self._mdriver._get_switch_interfaces(<EOL>switch_ip, cfg_only=(False if replay else True))<EOL>if not switch_ifs:<EOL><INDENT>LOG.debug("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>switch_ip)<EOL>return<EOL><DEDENT>self._driver.initialize_all_switch_interfaces(<EOL>switch_ifs, switch_ip)<EOL><DEDENT>except Exception:<EOL><INDENT>with excutils.save_and_reraise_exception():<EOL><INDENT>LOG.warning("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip})<EOL>self._mdriver.register_switch_as_inactive(switch_ip,<EOL>'<STR_LIT>')<EOL><DEDENT><DEDENT>if self._mdriver.is_replay_enabled():<EOL><INDENT>return<EOL><DEDENT>
Initialize all nexus interfaces to trunk allowed none.