Download YANG Explorer - MG

Transcript
MG-SOFT YANG Explorer User Manual
Using NETCONF Content Editor
2. After opening the NETCONF Content Editor window, select the type of content you
wish to edit or validate by selecting it from the Content type drop-down list in the
toolbar. You can choose between these content types:

data: Use this content type to edit/validate entire datastores – XML instance
files, which contain both state and configuration data,

config: Use this content type when you wish to edit/validate configuration data only,

get: Use his content type when you wish to compose an XML document for a
NETCONF get request. This content type lets you add get operation specific
elements in addition to being able to edit a configuration. For example, it will let you
specify a NETCONF filter element.

get-config: Use his content type when you wish to compose an XML document
for a NETCONF get-config request. This content type lets you add get-config
specific elements in addition to being able to edit a configuration. For example, it will
let you specify a NETCONF filter element.

edit-config: Use his content type when you wish to compose an XML document
for a NETCONF edit-config request. This content type differs from “config” in that it
lets you add edit-config specific elements and attributes in addition to being able to
edit a configuration. For example, it will let you specify a NETCONF operation
attribute for each element of the config subtree.

rpc: Allows you to create RPC operation requests based on RPC definitions
available in the input modules and also lets you send a valid document as an RPC
request, the same way this is possible with the get, get-config and editconfig content type,

notification: Lets you validate or create examples of notifications defined in
your input modules,

get-reply: Enables you to validate or create examples of possible rpc-reply
messages defined by your input modules, which would be created on server with
a NETCONF get operation,

get-config-reply: Enables you to validate or create examples of possible
rpc-reply messages defined by your input modules, which would be created on
server with a NETCONF get-config operation,

rpc-reply: Enables you to validate or create examples of possible rpc-reply
messages defined by your input modules, which would be created on server with
any NETCONF RPC operation request.
3. Once you have chosen a content type, you can refine the schema behind it via the
Configuration tabs. There are currently two ways to refine the schema:
 by selecting input modules for the schema generation algorithm among all
loaded YANG/YIN modules, and
 by selecting enabled features, defined by the input modules.
To include or exclude a YANG/YIN module, select the Input Modules tab and click
the Change... button below it to open a dialog which will let you select the input
modules. Similarly, you can enable or disable features in the Enabled Features tab
(provided that the selected input modules define features).
 62