Example #1
0
def main():

	pfx = '184.164.250.0/24'
	num = 250
	
	pfx_object = Prefix(num, 47065, "announced")
	pfx_object.up()

	'''
	announce_null(pfx_object)
	soft_reset()
	wait_cmd(NULL_INTERVAL)
	'''

	muxesToPrepend = ['WISC','CLEMSON']
	prependLengths = [3,1]
	for mux in MUX_NAMES:
		if mux in muxesToPrepend:
			idx = muxesToPrepend.index(mux)
			pfx_object.set_num_prepend1(prependLengths[idx],mux)
		else:
			pfx_object.update_route_map1(mux,False)

	pfx_object.up()
	soft_reset()
Example #2
0
def main():

	pfx = '184.164.250.0/24'
	num = 250
	
	pfx_object = Prefix(num, 47065, "announced")
	pfx_object.up()

	mux2Poison = 'PRINCE'
	controlMux = 'GATECH'
	poisonAS = 7922
	pfx_object.poisonList([poisonAS])
	pfx_object.update_route_map1(mux2Poison,True)

	pfx_object.up()
	soft_reset()
Example #3
0
def main():

	num = 251	
	pfx_object = Prefix(num, 47065, "announced")
	pfx_object.up()
	announce_null(pfx_object)

	soft_reset()
	wait_cmd(NULL_INTERVAL)

	muxesToPrepend = ['PRINCE']
	prependLengths = [2]
	for mux in MUX_NAMES:
		if mux in muxesToPrepend:
			idx = muxesToPrepend.index(mux)
			pfx_object.set_num_prepend1(prependLengths[idx],mux)
		else:
			pfx_object.update_route_map1(mux,False)

	pfx_object.up()
	soft_reset()