
Security News
CISA’s 2025 SBOM Guidance Adds Hashes, Licenses, Tool Metadata, and Context
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Junoser is a JUNOS configuration PEG parser which can be automatically generated from Juniper's netconf.xsd. (XML Schema Definition for NETCONF)
Configuration Validation
Configuration Translation
NOTE
Inter-translation from display-set form into structured form is experimental feature in this release.
$ gem install junoser
$ junoser -c config.txt
# or
$ cat config.txt | junoser -c
$ junoser -d config.txt
set protocols bgp group ebgp-peers neighbor 192.0.2.2
# or
$ cat config.txt | junoser -d
set protocols bgp group ebgp-peers neighbor 192.0.2.2
$ junoser -s config.txt
# or
$ cat config.txt | junoser -s
From Juniper website, you can download the XSD schema for the version of JunOS you want to target:
Alternatively, you can retrieve the schema with Netconf:
$ ssh -Csp 830 JUNOS netconf < example/get-schema.xml | sed -n '/^<xsd:schema/,/^<\/xsd:schema/p' > junos-XXX.xsd
Put it in tmp/
, update xsd_path
in Rakefile
and run:
$ bundle exec rake build:config build:rule
Alternatively, you may look in example/
for some prebuilt rules
file. If you want to use them, copy one to tmp/rules.rb
and run:
$ bundle exec rake build:rule
Please report issues or enhancement requests to GitHub issues. For questions or feedbacks write to my twitter @codeout.
Or send a pull request to fix.
Copyright (c) 2015-2025 Shintaro Kojima. Code released under the MIT license.
FAQs
Unknown package
We found that junoser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.
Security News
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.