@staticmethod
	def generate_rd (rd):
		separator = rd.find(':')
		prefix = rd[:separator]
		suffix = int(rd[separator+1:])
		data = [chr(0),chr(1)]
		data.extend([chr(int(_)) for _ in prefix.split('.')])
		data.extend([chr(suffix >> 8),chr(suffix & 0xFF)])
		bin_rd = ''.join(data)
		return RouteDistinguisher(bin_rd)
Test the _write_auto_filter() method
dataset/ETHPy150Open Exa-Networks/exabgp/qa/tests/l2pnv_test.py/TestL2VPN.generate_rd--crossover with--dataset/ETHPy150Open jmcnamara/XlsxWriter/xlsxwriter/test/worksheet/test_write_auto_filter.py/TestWriteAutoFilter.test_write_auto_filter_1