Closed nickbroon closed 6 years ago
Short answer: you can't create an options template from a spec list without a hack. RFC 7013 section 10 suggests you should be able to do this by putting a {scope} context on the IEs you want to be scope elements, but python-ipfix doesn't implement this.
The hack is to manually set the scope count after creating the template:
tmpl = ipfix.template.for_specs(262, "applicationId",
"applicationName")
tmpl.scopecount = 1
Thanks for the tip Brian.
The example for a regular template is given as something like:
But how would a message containing a option template be constructed? The below creates the template and data records, but how is the template identified as an option template and the scope length set to 1?