Got it

Help with yang schema used by VRP

Latest reply: Apr 21, 2020 00:26:55 395 2 0 0 0

HI everyone,

Someone can help me with the yang schemas that use VRP. All of this is for study with NETCONF.

Only had the <ifm> schema for interfaces parameters.


I cant request the schemas to the device by ncclient (get_Schema)

Error:


ValueError: Invalid tag name '<Element {urn:ietf:params:xml:ns:netconf:base:1.0}get-Schema at 0x7f5cac566a08>'


By example:

<ifm xmlns="http://www.huawei.com/netconf/vrp" content-version="1.0" format-version="1.0">
<interfaces>
<interface>
<ifName> </ifName>
</interface>
</interfaces>
</ifm>"""

Hello,
Please follow the link below to get the desired information:
https://support.huawei.com/enterprise/en/doc/EDOC1100039598/d602da5e/netconf-message-formats
View more
  • x
  • convention:

Posted by wissal at 2020-04-20 21:19 Hello,Please follow the link below to get the desired information:https://support.huawei.com/enterpr ...
Hi, Thank by the information but it's not exactly what I'm looking for.

I´m ask by the yang structure of capabilities.

something like this:

$ pyang -f tree ietf-interfaces.yang
module: ietf-interfaces
+--rw interfaces
| +--rw interface* [name]
| +--rw name string
| +--rw description? string
| +--rw type identityref
| +--rw enabled? boolean
| +--rw link-up-down-trap-enable? enumeration {if-mib}?
+--ro interfaces-state
+--ro interface* [name]
+--ro name string
+--ro type identityref
+--ro admin-status enumeration {if-mib}?
+--ro oper-status enumeration
+--ro last-change? yang:date-and-time
+--ro if-index int32 {if-mib}?
+--ro phys-address? yang:phys-address
+--ro higher-layer-if* interface-state-ref
+--ro lower-layer-if* interface-state-ref
+--ro speed? yang:gauge64
+--ro statistics
+--ro discontinuity-time yang:date-and-time
+--ro in-octets? yang:counter64
+--ro in-unicast-pkts? yang:counter64
+--ro in-broadcast-pkts? yang:counter64
+--ro in-multicast-pkts? yang:counter64
+--ro in-discards? yang:counter32
+--ro in-errors? yang:counter32
+--ro in-unknown-protos? yang:counter32
+--ro out-octets? yang:counter64
+--ro out-unicast-pkts? yang:counter64
+--ro out-broadcast-pkts? yang:counter64
+--ro out-multicast-pkts? yang:counter64
+--ro out-discards? yang:counter32
+--ro out-errors? yang:counter32

View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.