Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Hi, all!I am trying to construct an xml template for the service. Here is an example of the YANG module I constructed: ...
leaf-list device-group {
tailf:info "Device group to use";
type leafref {
path "/ncs:devices/nc...
Apparently the solution is to move some_service_tvars under the member loop. for group in service.device_group:
for member_name in root.devices.device_group[group].member:
some_service["device_name"]=member_name
...
some_service = {
'device_group':{},
}
for group in service.device_group:
syslog["device_group"][group]={}
syslog["device_group"][group]["member"] = {}
for member_name in root.de...
I would have done it through python main.py file, but the problem is how to use deref here?So I can loop through device-groups, but then I have a problem accessing device members of that group: for group in service.device_group:
se...