Issue : When a ‘node-address’ is already linked with one ‘node-group’ and if we want to move that ‘node-address’ to another ‘node-group’, bulk transaction fails.
Probably this is due to ‘ordering issue’ as ‘Yang model’ is not taking care of ‘removal’ & ‘add’ order of ‘node-address’.
So could you please help to find exact ‘tail-f:XX’ yang annotation ?
-Example-
Existing Config:
node A
ip address 1.1.1.1
node B
ip address 2.2.2.2
CLI config:
router(config)# node B
router(config-node-B)# no ip address 2.2.2.2
router(config-node-B)# ex
router(config)# node A
router(config-node-A)# ip address 2.2.2.2
router(config-node-A)# ex
router(config)#
router(config)# show config
node A <<<<< this is wrong, ‘no ip address 2.2.2.2’ in node B should be first
ip address 2.2.2.2
!
node B
no ip address 2.2.2.2
!
router(config)# commit <<<<<< here commit fails, since ip 2.2.2.2 is already configured to node B
Sample Yang Model:
list node-group {
description
"node Group";
tailf:cli-mode-name "config-node-group";
key "name";
leaf name {
type string;
}
leaf-list node-address {
description
"node ip address";
tailf:cli-list-syntax;
type inet:ipv4-address;
}
}