def replay_config(self, switch_ip):
LOG.debug("<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip})<EOL>try:<EOL><INDENT>self._initialize_trunk_interfaces_to_none(switch_ip)<EOL><DEDENT>except Exception:<EOL><INDENT>return<EOL><DEDENT>nve_bindings = nxos_db.get_nve_switch_bindings(switch_ip)<EOL>if (len(nve_bindings) > <NUM_LIT:0> and<EOL>cfg.CONF.ml2_cisco.vxlan_global_config):<EOL><INDENT>LOG.debug("<STR_LIT>")<EOL>loopback = self._mdriver.get_nve_loopback(switch_ip)<EOL>self._driver.enable_vxlan_feature(switch_ip,<EOL>const.NVE_INT_NUM, loopback)<EOL><DEDENT>for x in nve_bindings:<EOL><INDENT>try:<EOL><INDENT>self._driver.create_nve_member(switch_ip,<EOL>const.NVE_INT_NUM, x.vni, x.mcast_group)<EOL><DEDENT>except Exception as e:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip, '<STR_LIT>': x.vni,<EOL>'<STR_LIT>': e})<EOL>self._mdriver.register_switch_as_inactive(switch_ip,<EOL>'<STR_LIT>')<EOL>return<EOL><DEDENT><DEDENT>try:<EOL><INDENT>port_bindings = nxos_db.get_nexusport_switch_bindings(switch_ip)<EOL><DEDENT>except excep.NexusPortBindingNotFound:<EOL><INDENT>LOG.warning("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip})<EOL>return<EOL><DEDENT>try:<EOL><INDENT>self._mdriver.configure_switch_entries(<EOL>switch_ip, port_bindings)<EOL><DEDENT>except Exception as e:<EOL><INDENT>LOG.error("<STR_LIT>"<EOL>"<STR_LIT>",<EOL>{'<STR_LIT>': switch_ip, '<STR_LIT>': e})<EOL>self._mdriver.register_switch_as_inactive(switch_ip,<EOL>'<STR_LIT>')<EOL><DEDENT>
Sends pending config data in OpenStack to Nexus.