openconfig-demo-with-juniper-devices icon indicating copy to clipboard operation
openconfig-demo-with-juniper-devices copied to clipboard

I am studying NETCONF and YANG for the first time.

Open tibetia opened this issue 7 years ago • 1 comments

Hi ksator, I'm shhwang.

I am studying NETCONF and YANG for the first time. I have a three question.

First, Do I have to add all of these yang module using 'request system yang add module' to Junos device? 'YANG Module(s) :iana-if-type.yang ietf-inet-types.yang ietf-interfaces.yang ietf-yang-types.yang jnx-aug-openconfig-bgp.yang jnx-aug-openconfig-if-ip.yang jnx-aug-openconfig-interfaces.yang jnx-aug-openconfig-lacp.yang jnx-aug-openconfig-lldp.yang jnx-aug-openconfig-mpls.yang jnx-openconfig-dev.yang openconfig-bgp-multiprotocol.yang openconfig-bgp-operational.yang openconfig-bgp-policy.yang openconfig-bgp-types.yang openconfig-bgp.yang openconfig-extensions.yang openconfig-if-aggregate.yang openconfig-if-ethernet.yang openconfig-if-ip-ext.yang openconfig-if-ip.yang openconfig-interfaces.yang openconfig-lacp.yang openconfig-lldp-types.yang openconfig-lldp.yang openconfig-local-routing.yang openconfig-mpls-igp.yang openconfig-mpls-ldp.yang openconfig-mpls-rsvp.yang openconfig-mpls-sr.yang openconfig-mpls-static.yang openconfig-mpls-te.yang openconfig-mpls-types.yang openconfig-mpls.yang openconfig-platform-types.yang openconfig-platform.yang openconfig-policy-types.yang openconfig-rib-bgp-ext.yang openconfig-rib-bgp-types.yang openconfig-rib-bgp.yang openconfig-routing-policy.yang openconfig-terminal-device.yang openconfig-transport-types.yang openconfig-types.yang openconfig-vlan-types.yang openconfig-vlan.yang'

Second, How can I create or get a programs? ' Translation Script(s) :openconfig-bgp.slax openconfig-interface.slax openconfig-local-routing.slax openconfig-mpls.slax openconfig-policy.slax'

Third, Have you used the 'NetConf Browser' created by mg-soft corporation with NETCONF and YANG?

I would be very happy if you answer these questions. Thanks.

Regards,

tibetia avatar Dec 07 '16 13:12 tibetia

shhwang, check out the OpenConfig Feature Guide, which will show you how to install the OpenConfig package for your version of Junos.

For #3, I have checked out mg-soft's YANG programs, and there's an evaluation available. Keep in mind that you'll want to increase the memory available to the JVM to read Juniper's configuration.yang (262k lines), and the mg-soft documentation has info on how to accomplish this. You may also want to check out YANG Creator. Cheers!

routelastresort avatar Feb 05 '17 10:02 routelastresort