To test the example in this section, perform the following steps:
system {
scripts {
commit {
file ex-if-class.xsl;
}
}
}
interfaces {
so-1/2/3 {
unit 0 {
apply-macro ifclass {
area 10.4.0.0;
igp ospf;
role cpe;
}
}
}
}
t3-0/0/0 {
unit 0 {
apply-macro ifclass {
igp isis;
role cpe;
}
}
}
}
- [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
Script-Generated Configuration
When you issue the show protocols configuration mode command, the following output appears:
[edit]
user@host# show protocols
isis {
interface t3-0/0/0.0;
}
ospf {
area 10.4.0.0 {
interface so-1/2/3.0;
}
}
Manual Configuration
When you issue the show interfaces configuration mode command, the following output appears:
[edit]
user@host# show interfaces
t3-0/0/0 {
unit 0 {
apply-macro ifclass {
igp isis;
role cpe;
}
}
}
so-1/2/3 {
unit 0 {
apply-macro ifclass {
area 10.4.0.0;
igp ospf;
role cpe;
}
}
}