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

routing-policy: add 'iif' and 'oif' keys to routing-policy entry #543

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

aldobrrrr
Copy link

@aldobrrrr aldobrrrr commented Feb 20, 2025

Description

It's now possible to specify the incoming interface and the outgoing interface for a routing policy entry.

Example:

 network:
  version: 2
  ethernets:
    if0: {}
    eth0:
      dhcp4: true
      routing-policy:
        - table: 101
          iif: eth0
        - table: 101
          oif: if0

Checklist

  • Runs make check successfully.
  • Retains code coverage (make check-coverage).
  • New/changed keys in YAML format are documented.
  • (Optional) Adds example YAML for new feature.
  • (Optional) Closes an open bug in Launchpad.

@aldobrrrr aldobrrrr force-pushed the add-iif-parameter-to-routing-policy branch 2 times, most recently from 6236820 to 67439d7 Compare February 21, 2025 00:39
It's now possible to specify the incoming interface for a routing
policy entry.

Example:

  network:
    version: 2
    ethernets:
      if0: {}
      eth0:
        dhcp4: true
        routing-policy:
          - table: 101
            iif: if0

Signed-off-by: Emanuele Altomare <[email protected]>
@aldobrrrr aldobrrrr force-pushed the add-iif-parameter-to-routing-policy branch from 67439d7 to 36b80ce Compare February 21, 2025 15:04
@slyon slyon added the community This PR has been proposed by somebody outside of the Netplan team and roadmap commitments. label Feb 24, 2025
@Grissess
Copy link

This would close the languishing Bug 1798417 provided one adds a (symmetric, one hopes) implementation for oif as well :)

It's now possible to specify the outgoing interface for a routing
policy entry.

Example:

  network:
    version: 2
    ethernets:
      if0: {}
      eth0:
        dhcp4: true
        routing-policy:
          - table: 101
            oif: if0

Signed-off-by: Emanuele Altomare <[email protected]>
@aldobrrrr aldobrrrr changed the title routing-policy: add 'iif' key to routing-policy entry routing-policy: add 'iif' and 'oif' keys to routing-policy entry Feb 25, 2025
@aldobrrrr
Copy link
Author

This would close the languishing Bug 1798417 provided one adds a (symmetric, one hopes) implementation for oif as well :)

As you suggested, I added the 'oif' key, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community This PR has been proposed by somebody outside of the Netplan team and roadmap commitments.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants