-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtoJunosXlate.cfg
24 lines (18 loc) · 1.02 KB
/
toJunosXlate.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
match "hostname {line}" set /system/host-name = $1;
match "interface {string}" create context /interfaces/interface
set name = $1;
match "description {line}" set description = $1;
match "ip address {string}" set family/inet/address/name = $1;
match "ipv6 address {string}" set family/inet6/address/name = $1;
match "ipv6 enable" add family/inet6;
match "ip unnumbered {string}" set family/inet/unnumbered-address = $1;
section "interface {string}" first "ip(v6)? router isis"
add /interfaces/interface[name='$SECTION[0]']/family/iso
create /protocols/isis/interface
set name = $SECTION[0];
section "interface {string}" match "ip router isis"
add /protocols/isis/interface[name='$SECTION[0]']/no-ipv6-unicast;
section "interface {string}" match "ipv6 router isis"
add /protocols/isis/topologies/ipv6-unicast
delete /protocols/isis/interface[name='$SECTION[0]']/no-ipv6-unicast;
section "router isis" match "net {string}" set /interfaces/interface[name='lo0.0']/family/iso/address = $1;