-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ssh: T6192: allow binding to multiple VRF instances
Currently VyOS only supports binding a service to one individual VRF. It might become handy to have the services (initially it will be VRF, NTP and SNMP) be bound to multiple VRFs. Changed VRF from leafNode to multi leafNode with defaultValue: default - which is the name of the default VRF. (cherry picked from commit e5af1f0)
- Loading branch information
1 parent
b3fb51c
commit cc208d7
Showing
8 changed files
with
88 additions
and
39 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!-- include start from interface/vrf.xml.i --> | ||
<leafNode name="vrf"> | ||
<properties> | ||
<help>VRF instance name</help> | ||
<completionHelp> | ||
<path>vrf name</path> | ||
<list>default</list> | ||
</completionHelp> | ||
<valueHelp> | ||
<format>default</format> | ||
<description>Explicitly start in default VRF</description> | ||
</valueHelp> | ||
<valueHelp> | ||
<format>txt</format> | ||
<description>VRF instance name</description> | ||
</valueHelp> | ||
#include <include/constraint/vrf.xml.i> | ||
<multi/> | ||
</properties> | ||
<defaultValue>default</defaultValue> | ||
</leafNode> | ||
<!-- include end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
StartLimitIntervalSec=0 | ||
After=vyos-router.service | ||
ConditionPathExists=/run/sshd/sshd_config | ||
|
||
[Service] | ||
EnvironmentFile= | ||
ExecStart= | ||
ExecStart=ip vrf exec %i /usr/sbin/sshd -f /run/sshd/sshd_config | ||
Restart=always | ||
RestartPreventExitStatus= | ||
RestartSec=10 | ||
RuntimeDirectoryPreserve=yes |