-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
27 lines (25 loc) · 2.16 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
<title>YANG Extractor and Validator</title>
</head>
<body>
<div class="container">
<a href="https://github.com/cmoberg/confd-module-catalog"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
<h1>A YANG Module Catalog</h1>
<p class="lead" >A YANG model catalog and registry that allows users to find models relevant to their use cases from the large and growing number of YANG modules being published.</p>
<p>This server is running:
<ul>
<li>A NETCONF and REST (not RESTCONF-compliant yet) server loaded with the YANG module from <a href="https://tools.ietf.org/html/draft-openconfig-netmod-model-catalog">draft-openconfig-netmod-model-catalog</a>. It currently only allows public read access to the content. Feel free to reach out through the github forum if you are interested in write access. The username is <code>oper</code> and the password is <code>oper</code>.</li>
<li>A <a href="http://yangcatalog.org/yang-search">web frontend</a> that allows for searches over the content of the module catalog
</ul>
<h2>Examples</h2>
<p>For access to the REST interface using curl, try the following to receive the content of the organizations subtree from the module catalog YANG:</p>
<pre>$ curl -u oper:oper http://yangcatalog.org/api/operational/organizations?deep</pre>
<p>And to get the same data but in JSON-format, use the following:</p>
<pre>$ curl -H "Accept: application/vnd.yang.data+json" -u oper:oper http://yangcatalog.org/api/operational/organizations?deep</pre>
</div>
</body>