Git Product home page Git Product logo

Comments (9)

alrighttheresham avatar alrighttheresham commented on August 26, 2024

Guys is there any plans to fix this?

from jnc.

klacke avatar klacke commented on August 26, 2024

On 02/20/2013 12:16 PM, hshorter wrote:

The Yang included in ConfD as for SNMP Target Mib produces code which cannot be compiled due to conflicting class names and package names.


Why would you want to use NETCONF to manipulate the Yang data models that are
a variant of an SNMP MIB.

I think that when choosing which YANG modules to manage for a device, the SNMP
tables would not be part of that.

Typically the SNMP tables have instrumentation which is already covered by
some other YANG modules.

-klacke

from jnc.

alrighttheresham avatar alrighttheresham commented on August 26, 2024

We are offering this mib with a snmp implementation on the node, we want to model in yang as well. We are not looking for an alternative solution.

Are you suggesting that there is not an underlying problem with JNC, that there is something specific about this yang file?

from jnc.

klacke avatar klacke commented on August 26, 2024

On 03/12/2013 04:48 PM, alrighttheresham wrote:

We are offering this mib with a snmp implementation on the node, we want to model in yang as well. We are not looking for an alternative solution.

Are you suggesting that there is not an underlying problem with JNC, that there is something specific about this yang file?

No, I'm not (really yet) suggesting anything. All I'm saying is that it seems a
bit odd to use NETCONF to manipulate MIBs, the failing yang files are yang
representations of MIBS.

I see three solutions,

  • make the JNC adapt to the circumstances, i.e fix JNC so that it can also compile
    the yang files that stem from te MIBs

  • recompile the MIBs so that the issue disappears

  • Don't compile the SNMP yang files at all, this probably makes sense
    since you probably don't want to manipulate the MIBs over NETCONF
    anyway, use SNMP for that.

    It'll just be confusing for the NETCONF manager programmers to
    have the option of manipulating MIBs - over NETCONF

/klacke

from jnc.

alrighttheresham avatar alrighttheresham commented on August 26, 2024

We would prefer option 1 so that we dont find ourselves in a few weeks time in the same position with a different yang file.

Damian.

from jnc.

klacke avatar klacke commented on August 26, 2024

On 03/13/2013 08:26 AM, alrighttheresham wrote:

We would prefer option 1 so that we dont find ourselves in a few weeks time in the same position with a different yang file.

This may by, but let me provide an additional technical argument as to
to why this hopefully is a non issue today.

ConfD runs a bunch of MIBs, these are compiled (using confdc) as

file.mib -> file.yang -> file.fxs -> file.bin

The compilation of file.yang -> file.fxs is done using the confdc flag

confdc --export snmp ....

Meaning that the data, stats and config, described by file.yang is only
visible over the SNMP interface northbound.
This means that your NETCONF client will never be able to see this data, ConfD
will, when it announces its NETCONF capabilities, not include the
namespaces that originate from the SNMP MIBs.

You have your own private MIBs, and you may of course compile these
using any flags you want, but assuming that your MIBs refer to the standard
MIBs, in order for a NETCONF client to fully understand all that you'll
also have to recompile all the standard MIBs that come with ConfD so that
the --export snmp flag is not used.

$ ls $CONFD_DIR/etc/confd/snmp
IPV6-TC.fxs SNMP-NOTIFICATION-MIB.fxs SNMPv2-MIB.fxs
SNMP-COMMUNITY-MIB.fxs SNMP-TARGET-MIB.fxs SNMPv2-SMI.fxs
SNMP-FRAMEWORK-MIB.fxs SNMP-USER-BASED-SM-MIB.fxs SNMPv2-TC.fxs
SNMP-MPD-MIB.fxs SNMP-VIEW-BASED-ACM-MIB.fxs TRANSPORT-ADDRESS-MIB.fxs

/klacke

from jnc.

hshorter avatar hshorter commented on August 26, 2024

In our environment there is some data which is available in both NETCONF and SNMP. For example the SNMP-NOTIFICATION-MIB, SNMPv2-MIB. This is so that 3rd parties can access this in the standard SNMP way, and also so that we can access it via NETCONF, along with the rest of the configuration.

Not being able to access via NETCONF (due to this bug) means we would have to use two protocols to access configuration on the network element.

from jnc.

Emil-Tail-f avatar Emil-Tail-f commented on August 26, 2024

Please test and see if 48f3057 has solved this issue.

from jnc.

hshorter avatar hshorter commented on August 26, 2024

This has fixed the problem, thanks.

from jnc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.