Setting either toggle state of the attribute clears any previous settings of the attribute.
It is important to note that this flag is meaningless if the attribute name is in the negated form.
object newbie { help "Newbie settings"; /* default is that newbie is not rich */ attribute no-money { help "Is newbie rich?"; flag allow-no; type toggle; } /* default is that newbie is happy */ attribute happy { help "Is newbie happy?"; flag allow-no; type toggle; } }
user@router# set example newbie ?
Possible completions:
<[Enter]> Execute this command
+ apply-groups Groups from which to inherit configuration data
+ apply-groups-except Don't inherit configuration data from these groups
happy Is newbie happy?
no-happy Don't is newbie happy?
no-money Is newbie rich?
| Pipe through a command
[edit]
user@router# set example newbie happy
[edit]
user@router# commit
commit complete
[edit]
user@router# show example
newbie {
happy;
}
[edit]
user@router# set example newbie no-happy
[edit]
user@router# commit
commit complete
[edit]
user@router# show example
newbie {
no-happy;
}
[edit]