正则表达式-ASR9K
bridge-domain ^([0-9]+^) split-horizon
替换
bridge group ^1
bridge-domain ^1
interface Bundle-Ether104.^1
split-horizon group
xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls
替换
p2p **
interface Bundle-Ether104.2591
neighbor ipv4 ^1 pw-id ^2
pw-class l2vpn
service instance ^([0-9]+^) ethernet
description([0-9a-zA-Z-. ]+^)
encapsulation dot1q ^([0-9]+^)
rewrite ingress tag pop 1 symmetric
xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls
-------------------------------------------------------------------
interface Bundle-Ether106.^([0-9]+^)
description^([0-9a-zA-Z-. ]+^)
encapsulation dot1q ^([0-9]+^)
xconnect ^([0-9.]+^) ^([0-9]+^) encapsulation mpls
替换
interface Bundle-Ether106.^1 l2transport
description^2
encapsulation dot1q ^3
p2p