Commit b7f26d4
authored
[cli-sessions] Add support for cli-sessions feature (#99)
Add support for cli-sessions feature
What I did:
Added handlers for new SSH_SERVER and SERIAL_CONSOLE attributes.
Why I did it:
Give ability to:
configure limit for active login sessions.
configure ssh-server / serial console autologout timeout
configure sysrq-capabilities (enable / disable)
How I did it
Add new service that responsible for serial configuration;
Update existing flows for extended ssh-server configurations in hostcfgd;
Add YANG model to support new configuration.
How I verified it:
Configure, reconfigure, and reset all new parameters, check if applicapple parameters was updated in the system.
Added unittests.1 parent d2170c9 commit b7f26d4
File tree
10 files changed
+171
-13
lines changed- data/templates
- scripts
- tests/hostcfgd
- sample_output
- SSH_SERVER_default_values
- SSH_SERVER_modify_all
- SSH_SERVER_modify_authentication_retries
- SSH_SERVER_modify_login_timeout
- SSH_SERVER_modify_ports
- SSH_SERVER
10 files changed
+171
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| |||
1101 | 1106 | | |
1102 | 1107 | | |
1103 | 1108 | | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
1104 | 1112 | | |
1105 | 1113 | | |
1106 | 1114 | | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
1107 | 1118 | | |
1108 | 1119 | | |
1109 | 1120 | | |
| |||
1318 | 1329 | | |
1319 | 1330 | | |
1320 | 1331 | | |
| 1332 | + | |
1321 | 1333 | | |
1322 | 1334 | | |
1323 | 1335 | | |
1324 | 1336 | | |
1325 | | - | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
1326 | 1345 | | |
1327 | 1346 | | |
1328 | 1347 | | |
| 1348 | + | |
1329 | 1349 | | |
1330 | 1350 | | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
1331 | 1357 | | |
1332 | 1358 | | |
1333 | 1359 | | |
| |||
1344 | 1370 | | |
1345 | 1371 | | |
1346 | 1372 | | |
1347 | | - | |
1348 | 1373 | | |
1349 | 1374 | | |
1350 | 1375 | | |
| |||
1358 | 1383 | | |
1359 | 1384 | | |
1360 | 1385 | | |
1361 | | - | |
| 1386 | + | |
| 1387 | + | |
1362 | 1388 | | |
1363 | 1389 | | |
1364 | 1390 | | |
| |||
1690 | 1716 | | |
1691 | 1717 | | |
1692 | 1718 | | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
| 1722 | + | |
| 1723 | + | |
| 1724 | + | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
1693 | 1752 | | |
1694 | 1753 | | |
1695 | 1754 | | |
| |||
1741 | 1800 | | |
1742 | 1801 | | |
1743 | 1802 | | |
| 1803 | + | |
| 1804 | + | |
| 1805 | + | |
1744 | 1806 | | |
1745 | 1807 | | |
1746 | 1808 | | |
| |||
1763 | 1825 | | |
1764 | 1826 | | |
1765 | 1827 | | |
| 1828 | + | |
1766 | 1829 | | |
1767 | 1830 | | |
1768 | 1831 | | |
| |||
1771 | 1834 | | |
1772 | 1835 | | |
1773 | 1836 | | |
1774 | | - | |
1775 | 1837 | | |
1776 | 1838 | | |
1777 | 1839 | | |
1778 | 1840 | | |
| 1841 | + | |
| 1842 | + | |
1779 | 1843 | | |
1780 | 1844 | | |
1781 | 1845 | | |
| |||
1797 | 1861 | | |
1798 | 1862 | | |
1799 | 1863 | | |
| 1864 | + | |
| 1865 | + | |
1800 | 1866 | | |
1801 | 1867 | | |
1802 | 1868 | | |
| |||
1922 | 1988 | | |
1923 | 1989 | | |
1924 | 1990 | | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
1925 | 1995 | | |
1926 | 1996 | | |
1927 | 1997 | | |
| |||
1951 | 2021 | | |
1952 | 2022 | | |
1953 | 2023 | | |
| 2024 | + | |
| 2025 | + | |
1954 | 2026 | | |
1955 | 2027 | | |
1956 | 2028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
124 | 166 | | |
125 | 167 | | |
126 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
| |||
43 | 51 | | |
44 | 52 | | |
45 | 53 | | |
| 54 | + | |
| 55 | + | |
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| |||
67 | 77 | | |
68 | 78 | | |
69 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| |||
75 | 91 | | |
76 | 92 | | |
77 | 93 | | |
| 94 | + | |
| 95 | + | |
78 | 96 | | |
79 | 97 | | |
80 | 98 | | |
| |||
99 | 117 | | |
100 | 118 | | |
101 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
102 | 126 | | |
103 | 127 | | |
104 | 128 | | |
| |||
107 | 131 | | |
108 | 132 | | |
109 | 133 | | |
| 134 | + | |
| 135 | + | |
110 | 136 | | |
111 | 137 | | |
112 | 138 | | |
| |||
132 | 158 | | |
133 | 159 | | |
134 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
135 | 167 | | |
136 | 168 | | |
137 | 169 | | |
138 | 170 | | |
139 | 171 | | |
140 | 172 | | |
141 | 173 | | |
| 174 | + | |
| 175 | + | |
142 | 176 | | |
143 | 177 | | |
144 | 178 | | |
| |||
163 | 197 | | |
164 | 198 | | |
165 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
166 | 206 | | |
167 | 207 | | |
168 | 208 | | |
| |||
0 commit comments