Hi,
I wanted to create something like below,
routing-instance blue {
mapping {
10.0.0.0/24 tag 10;
10.0.1.0/24 tag 20;
10.0.2.0/24 tag 30;
}
}
I have tried the YANG like below,
container routing-instance {
container mapping {
tailf:info "IP TAG Mapping";
list ip-prefix {
key "ip-prefix";
leaf ip-prefix {
tailf:info "IP Prefix";
type inet:ip-prefix;
}
leaf tag {
tailf:info "TAG value";
string;
}
}
}
}
But it gives me output like below,
cli(config)% show | compare
routing-instances {
blue {
mapping {
ip-prefix 10.0.0.0/24 {
tag10;
}
ip-prefix 10.0.1.0/24 {
tag 20;
}
ip-prefix 11.0.0.0/24 {
tag 25;
}
}
}
}
}
[ok][2021-04-12 22:36:07]
Any pointers on how to achieve my desired output style ?