-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add instructions on how to update parser #17
Conversation
f9de4ee
to
7df380f
Compare
Thank you for your great documentation! I didn't know that .xsd is available on https://support.juniper.net/support/downloads/. How different is it from that you can get by NETCONF? I usually download .xsd from JUNOS device by NETCONF as you did at #16, but I'm also afraid it can be platform specific. If schema from Juniper web looks more generic, it should be better for this project. |
The ones I got from netconf didn't have the namespaces and it seemed that nokogiri is therefore confused. Did you get your XML schema with the same client as I show in #16? If it's possible to download directly from the equipment, I think this would be easier. Juniper is difficult when giving access to downloads. For some reason, I was authorized on my personal account, but not with the shared team account. |
Also include the schema for JunOS 18.1R3-S9. It seems the schema is not equipment specific as we only specify a version on Juniper website. Fix codeout#16
7df380f
to
a34ceca
Compare
# get-schema.xml
<?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<capabilities>
<capability>urn:ietf:params:netconf:base:1.0</capability>
</capabilities>
</hello>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="1">
<get-xnm-information>
<type>xml-schema</type>
<namespace>junos-configuration</namespace>
</get-xnm-information>
</rpc>
]]>]]>
<?xml version="1.0" encoding="UTF-8"?>
<rpc xmlns="urn:ietf:params:xml:ns:netconf:base:1.0" message-id="2">
<close-session/>
</rpc> |
I have tried your method and there are many differences. Additions and deletions. So, it's a bit unknown what Juniper provides on its website. I have added a commit to explain your method as well. For some reason, in my case, the generated Edit: that's because of #18. |
Is the |
It is, but I have already fixed the issue. It's easy to reproduce from any XSD. Just spot a <!-- </connectivity-association> -->
<xsd:element name="aes-gcm-revert-flag" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Flag to fall back to previous AES_GCM_256
cipher suite implementation</xsd:documentation>
<xsd:appinfo>
<flag>current-product-support</flag>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType/>
</xsd:element> |
Thanks, I could reproduce the problem. Let me look into it. |
I have confirmed that #18 fixes the problem. Thanks! |
Also include the schema for JunOS 18.1R3-S9. It seems the schema is
not equipment specific as we only specify a version on Juniper
website.
Fix #16