To test the example in this section, perform the following steps:
system {
scripts {
commit {
allow-transients;
file ex-if-params.xsl;
}
}
}
groups {
interface-details {
interfaces {
<so-*/*/*> {
clocking internal;
}
}
}
}
interfaces {
so-1/2/3 {
apply-macro params {
description "Link to Hoverville";
encapsulation ppp;
inet-address 10.1.2.3/28;
isis-level-1 enable;
isis-level-1-metric 50;
isis-level-2-metric 85;
}
}
}
- [edit]
- user@host# load merge terminal
- [Type ^D at a new line to end input]
- > Paste the contents of the clipboard here<
- [edit]
- user@host# commit
When you issue the show interfaces | display commit-scripts | display inheritance configuration mode command, the following output appears:
[edit]
user@host# show interfaces | display commit-scripts | display inheritance
so-1/2/3 {
apply-macro params {
clocking internal;
description "Link to Hoverville";
encapsulation ppp;
inet-address 10.1.2.3/28;
isis-level-1 enable;
isis-level-1-metric 50;
isis-level-2-metric 85;
}
description "Link to Hoverville";
##
## 'internal' was inherited from group 'interface-details'
##
clocking internal;
encapsulation ppp;
unit 0 {
family inet {
address 10.1.2.3/28;
}
}
}
When you issue the show protocols | display commit-scripts configuration mode command, the following output appears:
[edit]
user@host# show protocols | display commit-scripts
rsvp {
interface so-1/2/3.0;
}
isis {
interface so-1/2/3.0 {
level 1 {
enable;
metric 50;
}
level 2 metric 85;
}
}
ldp {
interface so-1/2/3.0;
}