I made a following configuration to my router:
root> show configuration
## Last commit: 2011-09-24 02:23:18 UTC by root
version 10.1R1.8;
groups {
TEST2 {
interfaces {
<*> {
unit <*> {
description switch;
}
}
}
}
MASTER {
interfaces {
fxp2 {
unit 0 {
apply-groups TEST2;
}
}
}
}
MASTER2 {
interfaces {
fxp2 {
unit 0 {
description server;
}
}
}
}
}
system {
root-authentication {
encrypted-password jWd03ZOzd8WDz; ## SECRET-DATA
}
syslog {
user * {
any emergency;
}
file messages {
any notice;
authorization info;
}
file interactive-commands {
interactive-commands any;
}
}
}
interfaces {
fxp2 {
apply-groups MASTER;
unit 0 {
apply-groups MASTER2;
}
}
fxp6 {
unit 0 {
family inet {
address 192.168.1.199/24;
}
}
}
}
root>
As you can see,
fxp2.0 gets it's description from group
MASTER, which gets it's configuration from group
TEST2 so finally the fxp2 unit 0 description would be
switch. However, there is a duplicate apply-group
MASTER2, which configures interface
fxp2 unit 0 description to
server. Is there some sort of rule, which of those groups will apply description to fxp2.0? In other words both
MASTER2 and
TEST2 try to set description to
fxp2.0, but which one will win and why?