mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Merge pull request #2827 from pchaigno/yang
Support for the YANG modeling language
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -707,3 +707,6 @@
|
|||||||
[submodule "vendor/grammars/atom-language-stan"]
|
[submodule "vendor/grammars/atom-language-stan"]
|
||||||
path = vendor/grammars/atom-language-stan
|
path = vendor/grammars/atom-language-stan
|
||||||
url = https://github.com/jrnold/atom-language-stan
|
url = https://github.com/jrnold/atom-language-stan
|
||||||
|
[submodule "vendor/grammars/language-yang"]
|
||||||
|
path = vendor/grammars/language-yang
|
||||||
|
url = https://github.com/DzonyKalafut/language-yang.git
|
||||||
|
|||||||
@@ -372,6 +372,8 @@ vendor/grammars/language-xbase:
|
|||||||
- source.harbour
|
- source.harbour
|
||||||
vendor/grammars/language-yaml:
|
vendor/grammars/language-yaml:
|
||||||
- source.yaml
|
- source.yaml
|
||||||
|
vendor/grammars/language-yang/:
|
||||||
|
- source.yang
|
||||||
vendor/grammars/latex.tmbundle:
|
vendor/grammars/latex.tmbundle:
|
||||||
- text.bibtex
|
- text.bibtex
|
||||||
- text.log.latex
|
- text.log.latex
|
||||||
|
|||||||
@@ -3903,6 +3903,13 @@ YAML:
|
|||||||
- .yaml-tmlanguage
|
- .yaml-tmlanguage
|
||||||
ace_mode: yaml
|
ace_mode: yaml
|
||||||
|
|
||||||
|
YANG:
|
||||||
|
type: data
|
||||||
|
extensions:
|
||||||
|
- .yang
|
||||||
|
tm_scope: source.yang
|
||||||
|
ace_mode: text
|
||||||
|
|
||||||
Yacc:
|
Yacc:
|
||||||
type: programming
|
type: programming
|
||||||
extensions:
|
extensions:
|
||||||
|
|||||||
55
samples/YANG/sfc-lisp-impl.yang
Normal file
55
samples/YANG/sfc-lisp-impl.yang
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
module sfc-lisp-impl {
|
||||||
|
|
||||||
|
yang-version 1;
|
||||||
|
namespace "urn:opendaylight:params:xml:ns:yang:controller:config:sfc-lisp:impl";
|
||||||
|
prefix "sfc-lisp-impl";
|
||||||
|
|
||||||
|
import config { prefix config; revision-date 2013-04-05; }
|
||||||
|
import rpc-context { prefix rpcx; revision-date 2013-06-17; }
|
||||||
|
import opendaylight-md-sal-binding { prefix mdsal; revision-date 2013-10-28; }
|
||||||
|
|
||||||
|
|
||||||
|
description
|
||||||
|
"This module contains the base YANG definitions for
|
||||||
|
sfc-lisp implementation.";
|
||||||
|
|
||||||
|
revision "2015-04-27" {
|
||||||
|
description
|
||||||
|
"Initial revision.";
|
||||||
|
}
|
||||||
|
|
||||||
|
// This is the definition of the service implementation as a module identity
|
||||||
|
identity sfc-lisp-impl {
|
||||||
|
base config:module-type;
|
||||||
|
|
||||||
|
// Specifies the prefix for generated java classes.
|
||||||
|
config:java-name-prefix SfcLisp;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Augments the 'configuration' choice node under modules/module.
|
||||||
|
augment "/config:modules/config:module/config:configuration" {
|
||||||
|
case sfc-lisp-impl {
|
||||||
|
when "/config:modules/config:module/config:type = 'sfc-lisp-impl'";
|
||||||
|
|
||||||
|
//wires in the data-broker service
|
||||||
|
container data-broker {
|
||||||
|
uses config:service-ref {
|
||||||
|
refine type {
|
||||||
|
mandatory false;
|
||||||
|
config:required-identity mdsal:binding-async-data-broker;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
container rpc-registry {
|
||||||
|
uses config:service-ref {
|
||||||
|
refine type {
|
||||||
|
mandatory true;
|
||||||
|
config:required-identity mdsal:binding-rpc-registry;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
1
vendor/grammars/language-yang
vendored
Submodule
1
vendor/grammars/language-yang
vendored
Submodule
Submodule vendor/grammars/language-yang added at c2d4a701d1
Reference in New Issue
Block a user