-
Notifications
You must be signed in to change notification settings - Fork 4
/
netgate-interface-extensions.yang
111 lines (86 loc) · 1.94 KB
/
netgate-interface-extensions.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
module netgate-interface-extensions {
yang-version 1.1;
namespace "urn:netgate:xml:yang:netgate-ifext";
prefix "ngifext";
import netgate-cli-extensions {
prefix "ngcliext";
}
import netgate-interface {
prefix "ngif";
}
organization "Netgate";
contact "Web: <http://www.netgate.com>";
description
"This YANG module provides a data model for extended data for
a network interface.
Copyright 2019-2020 Rubicon Communications, LLC.";
revision 2022-06-15 {
description
"TNSR Release 22.06.";
}
revision 2021-02-15 {
description
"TNSR Release 21.02.";
}
revision 2020-06-15 {
description
"TNSR Release 20.06.";
}
revision 2020-02-15 {
description
"TNSR Release 20.02.";
}
grouping interface-config-extensions {
description
"The interface extensions configuration data contains interface
information that is not covered by standard data models.";
list rx-queue {
key rx-queue-id;
ngcliext:parent-fmt "^$% @{rx-queue-id}";
leaf rx-queue-id {
type uint16;
description
"Queue number";
}
leaf pinned-cpu-id {
type uint16;
description
"CPU ID";
ngcliext:node-fmt "$< cpu @@$n";
}
}
}
grouping interface-state-extensions {
description
"The interface extensions state data contains interface
information that is not covered by standard data models.";
list rx-queue {
key rx-queue-id;
leaf rx-queue-id {
type uint16;
description
"Queue number";
}
leaf pinned-cpu-id {
type uint16;
description
"CPU ID";
}
leaf rx-mode {
type string;
description
"Rx mode";
}
}
}
augment "/ngif:interfaces-config/ngif:interface" {
container rx-queues {
uses interface-config-extensions;
}
}
augment "/ngif:interfaces-state/ngif:interface" {
container rx-queues {
uses interface-state-extensions;
}
}
}