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

set attr from interfaces.yml #96

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

obedouet
Copy link
Contributor

I propose a little modification to allow setting attributes like MTU from interfaces.yml on a device where interfaces are templated.

Example:
device_types.yml:

- model: TOR-8P
  manufacturer: GNS3
  part_number: vlab-eos
  slug: tor-8p
  interfaces:
    - name: Ethernet1
      type: 1000base-t
      description: UPLINK

devices.yml:

- name: gns3-tor
  device_type: TOR-8P

interfaces.yml:

- name: Ethernet1
  mtu: 9100
  device: gns3-tor

@tobiasge
Copy link
Owner

Please extend the yml files with examples.

@tobiasge tobiasge merged commit 5d3bc30 into tobiasge:main Mar 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants