Translating a Route Map to a Policy

You may be more familiar with using route maps on other Extreme Networks switches. This example shows the policy equivalent to an ExtremeWare route map.

ExtremeWare route map:

Route Map : rt
Entry : 10     Action : permit
match origin incomplete
Entry : 20     Action : deny
match community  6553800
Entry : 30     Action : permit
match med  30
set next-hop 10.201.23.10
set as-path 64502
set as-path 64503
set as-path 64504
set as-path 64504
Entry : 40     Action : permit
set local-preference 120
set weight 2
Entry : 50     Action : permit
match origin incomplete
match community  19661200
set dampening half-life 20 reuse-limit 1000 suppress-limit 3000 max-suppress 40
Entry : 60     Action : permit
match next-hop 192.168.1.5
set community add 949616660

Equivalent policy:

entry  entry-10  {
	If  {
		origin    incomplete;
	}
	then  {
		permit;
	}
}
entry  entry-20  {
	if  {
		community   6553800;
	}
	then  {
		deny;
	}
}
entry  entry-30  {
	if  {
		med   30;
	}
	then  {
		next-hop	 10.201.23.10;
		as-path 64502;
		as-path 64503;
		as-path	 64504;
		as-path	 64504;
		permit;
	}
}
entry  entry-40  {
	if  {
	}
	then  {
		local-preference 120;
		weight		 2;
		permit;
}
}
entry  entry-50 match any {
	if  {
		origin 		incomplete;
		community	 19661200;
	}
	then  {
		dampening half-life 20 reuse-limit 1000 suppress-limit 3000 max-suppress 40
		permit;
	}
}
entry  entry-60 {
	if  {
		next-hop 192.168.1.5;
	}
	then  {
		community  add  949616660;
		permit;
	}
}
entry  deny_rest {
	if  {
	}
	then  {
		deny;
	}
}