Philippe Guibert 
							
						 
					 
					
						
						
						
						
							
						
						
							a3f0a1f5ed 
							
						 
					 
					
						
						
							
							bgpd: add 'set as-path replace' with a configured ASN  
						
						... 
						
						
						
						There is no route-map set action to replace any ASN,
or a part of an ASN, with a configured ASN.
The current commit adds a new command to use a configured
ASN as replacement, instead of using the local as number.
> set as-path replace any 65500
Update the 'bgp_set_aspath_replace' test.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com> 
						
					 
					
						2023-06-28 21:21:55 +02:00 
						 
				 
			
				
					
						
							
							
								Donatas Abraitis 
							
						 
					 
					
						
						
						
						
							
						
						
							77e3d82167 
							
						 
					 
					
						
						
							
							bgpd: Add set as-path replace <any|ASN> cmd for route-maps  
						
						... 
						
						
						
						```
route-map tstas permit 10
 set as-path replace 1
exit
```
Before:
```
donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32
BGP routing table entry for 10.10.10.10/32, version 13
Paths: (1 available, best #1 , table default)
  Advertised to non peer-group peers:
  192.168.10.65
  65000 1 2 3 123
    192.168.10.65 from 192.168.10.65 (10.10.10.11)
      Origin IGP, metric 0, valid, external, best (First path received)
      Last update: Mon Apr 25 10:39:50 2022
```
After:
```
donatas-laptop(config-router-af)# do show ip bgp 10.10.10.10/32
BGP routing table entry for 10.10.10.10/32, version 15
Paths: (1 available, best #1 , table default)
  Advertised to non peer-group peers:
  192.168.10.65
  65000 65010 2 3 123
    192.168.10.65 from 192.168.10.65 (10.10.10.11)
      Origin IGP, metric 0, valid, external, best (First path received)
      Last update: Mon Apr 25 10:40:16 2022
```
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org> 
						
					 
					
						2022-04-25 14:05:22 +03:00