template-id
Syntax
template-id id;
Hierarchy Level
[edit services flow-monitoring version9 template template-name], [edit services flow-monitoring version-ipfix template template-name]
Description
Define a template ID to be used for flow aggregation of version 9 and IPFIX flows.
MX and QFX Series
The template ID can be a value in the range of 1024 through 65535. If you do not configure a value for the template ID, a default value is assumed for this ID, which is different for the various address families. If you configure the same template ID value for different address families, such a setting is not processed properly and might cause unexpected behavior. For example, if you configure the same template ID value for both IPv4 and IPv6, the collector validates the export data based on the template ID value that it last receives. In this case, if IPv6 is configured after IPv4, the value is effective for IPv6 and the default value is used for IPv4.
PTX Series
If you choose to configure the template ID, the range is 1024 to 65520. If you do not configure this ID, the default value that are set is in the range 256-511 and is different for each template.
You can configure the template-id
statement for family
inet
, inet6
, and mpls
only.
You must not configure the same IDs for different templates (option or data template). The operating system does not check to ensure that you do not configure the same ID value for different templates. If you configure the same ID value, such a setting is not processed properly and might cause unexpected behavior.
The template ID range [configured template-id
value + 20) is
reserved and you must not configure any another ID in this range. The difference
between configured template IDs across families should be at least 20; for
example, if template-id 1056
is configured for family
inet
, you should not configure template IDs in the range of
1056 to 1075 for any other families.
For Junos OS, if you change the template ID, all flows are inactively timed out. New flows are learned afresh.
For Junos OS Evolved, if you change the template ID, this change does not impact the flows.
Options
id
—Unique identifier for the template to be used
for version 9 or IPFIX flows. The range 0-255 is reserved and is used for template
sets, options template sets, and for future expansion. If you do not configure a
template ID, the software generates a template ID for you.
-
Range: 1024 through 65,535
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 14.1.
Statement introduced in Junos OS Evolved Release 22.4R1.