detnet-wg / draft-ietf-detnet-yang

Repo for https://datatracker.ietf.org/doc/draft-ietf-detnet-yang/
3 stars 1 forks source link

Yanglint for detnet Config #15

Open dfedyk opened 4 years ago

dfedyk commented 4 years ago

Hi

This is a Yanglint example. You need to install yanglint. To run extract the files in the zip and in a directory with the other yang files in the include: (ietf-yang-types.yang, ietf-inet-types.yang, ietf-ethertypes.yang, ietf-routing-types.yang, ietf-routing.yang, ietf-packet-fields.yang, ietf-interfaces.yang)

$ yanglint

load iana-if-type load ietf-detnet-config data -t config -f json egress_node1.xml

detnet-yanglint.zip

dfedyk commented 4 years ago

Here is a corrected xml for the first model - These files all validate in yanglint. I will provide a bidirectional reduced set. Note only one transit node is supplied.

ietf-detnet-config-yanglint.zip

dfedyk commented 4 years ago

Here is another set of configuration with a bidirectional application config. We can use to discuss some items. ietf-detnet-config-yanglint.zip

cheol83 commented 4 years ago

Here is the XML configuration with a bidirectional application config and the JSON validation result with yanglint . ietf-detnet-config-yanglint-yc.zip

dfedyk commented 4 years ago

Hi This is an example of a single Application Configuration using Yanglint. The application service pointers should be config false but I have left them configurable just to illustrate where they are. Normally you would only configure the reference pointers on the service sub-layer and the application would have it reference populated by the back-end software.

ietf-detnet-config.zip

cheol83 commented 4 years ago

modified yang model new yang model(bidir).zip