Configure FlexConfig Text Objects
Use text objects in FlexConfig objects as the target of policy object variables. You can use variables to supply information that can be known only at runtime, or which can differ from device to device. During deployment, variables that point to text objects are replaced by the content of the text object.
Text objects contain free-form strings, which can be keywords, interface names, numbers, IP addresses, and so forth. The content depends on how you will use the information within a FlexConfig script.
Before creating or editing a text object, determine exactly what content you will need. This includes how you intend to process the object, which will help you decide between creating a single string or multiple string object. Read the following topics:
Procedure
Step 1 | Choose . | ||
Step 2 | Choose from the list of object types. | ||
Step 3 | Do one of the following:
| ||
Step 4 | Enter a Name and optionally, a description for the object. | ||
Step 5 | (New objects only.) Choose a Variable Type from the drop-down list:
You cannot change the variable type after you save the object. | ||
Step 6 | If the variable type is Multiple, use the up and down arrows to specify a Count. Rows are added or removed from the object as you change the number. | ||
Step 7 | Add content to the object. You can either click in the text box next to a variable number and type in a value, or you can set up device overrides for each device that will be assigned a FlexConfig object that uses the text object. You can also do both, in which case the values configured in the base object act as default values in cases where an override does not exist for a given device. When editing predefined objects, it is a good practice to use device overrides, so that the system defaults remain in place for other users who might need to use the object in different FlexConfig policies. The approach you take depends on the requirements of your organization.
If you decide to use device overrides, do the following. | ||
Step 8 | Click Save. |
What to do next
-
If an active policy references your object, deploy configuration changes.