-
Notifications
You must be signed in to change notification settings - Fork 4
/
netgate-vpp-graph.yang
84 lines (65 loc) · 1.42 KB
/
netgate-vpp-graph.yang
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
module netgate-vpp-graph {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-vpp-graph";
prefix "ngvg";
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"This YANG module provides information about the VPP packet
processing graph structure.
Copyright 2020 Rubicon Communications, LLC.
";
revision 2021-02-15 {
description
"TNSR Release 21.02.";
}
revision 2020-05-02 {
description
"Initial VPP graph RPC definitions.";
}
typedef graph-node-name {
type string {
length "1..64"; /* VPP GRAPH_NODE_NAME_LEN */
}
}
typedef graph-node-flags {
type uint16;
description
"Use 0x100 for GRAPH_NODE_FLAG_INPUT.";
}
rpc graph-node-get {
description
"If index is present, return node with given index.
If index is absent and name is present, return named node.
If both index and name are absent, and flags is present,
return flagged nodes.
Otherwise with no selection criteria given, return all nodes.";
input {
leaf index {
type uint32;
}
leaf name {
type graph-node-name;
}
leaf flags {
type graph-node-flags;
}
}
output {
container nodes {
list node {
key index;
leaf index {
type uint32;
}
leaf name {
type graph-node-name;
}
leaf flags {
type graph-node-flags;
}
}
}
}
}
}