What is a view?

View files

Views, or view files, are used to augment the intent type YANG to create the input form the user will see when creating an intent, or when using intent-based configuration in another NSP function.

Nokia-signed intent types, which are installed using Artifacts, cannot be edited except to manage views.

To see the list of views for an intent type, double-click on the intent type from the Network Intents, Intent Types view and click MANAGE VIEWS.

The list of views includes:

For detailed information about View file configuration for developers, see the ViewConfig section of the Network Intents tutorial on the Network Developer Portal.

Default viewConfig file

When an intent is created from the Intent Types view, NSP searches for a viewConfig file called default.viewConfig to render the intent creation form.

If there is no default.viewConfig file present, NSP renders a basic form from the intent type YANG. To customize the default intent creation form, configure a default.viewConfig file; see How do I add or change a View file?.

Other viewConfig files can be created for use from other NSP functions.

Parent and child viewConfig files

A viewConfig file can be attached to another as a child. The child file inherits all the attributes and rules configured in the parent file.

The child file can add attributes or overwrite attribute values and rules.

For example:

In the Form Preview, if you choose the parent schema form, one attribute is changed. The title is Parent. If you choose the child schema form, two attributes are changed. The titles are child and child2.