Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Salt should be able to handle Cumulus Linux VRFs (Virtual routing and forwarding) #66995

Open
Koni-DFX opened this issue Oct 24, 2024 · 1 comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage

Comments

@Koni-DFX
Copy link

Is your feature request related to a problem? Please describe.

We use Cumulus Linux with Virtual Routing and Forwarding (VRFs). One of the VRFs is the management (mgmt) VRF. The internal Debian mirror, for example, can only be accessed from this mgmt VRF.

Scripts / commands can be executed in the mgmt VRF as follows:

sudo ip vrf exec mgmt apt-get install snmp-mibs-downloader

Since salt installs the Debian packages with apt via systemd-run, only the default VRF is used and our Debian mirror is not accessible.

Describe the solution you'd like

We use the following patch in salt/modules/aptpkg.py

   cmd.extend(["systemd-run", "--scope", "--description", '"{}"'.format(__name__)])
+    vrf = __salt__["config.get"]("systemd.vrf", "")
+    if (vrf):
+        cmd.extend(["/usr/sbin/ip", "vrf", "exec", vrf])
+
     cmd.extend(args)

In the minion configuration (/etc/salt/minion.d/local.conf) we define the VRF:

systemd.vrf: mgmt

Describe alternatives you've considered

n/a

Additional context

Cumulus Linux - Virtual Routing and Forwarding - VRF.

@Koni-DFX Koni-DFX added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Oct 24, 2024
Copy link

welcome bot commented Oct 24, 2024

Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:

There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at saltproject@vmware.com. We’re glad you’ve joined our community and look forward to doing awesome things with you!

@dmurphy18 dmurphy18 changed the title salt should be able to handle Cumulus Linux VRFs (Virtual routing and forwarding) [FEATURE REQUEST] Salt should be able to handle Cumulus Linux VRFs (Virtual routing and forwarding) Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage
Projects
None yet
Development

No branches or pull requests

1 participant