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

Change the interface type #5

Open
wungad opened this issue Aug 23, 2024 · 1 comment
Open

Change the interface type #5

wungad opened this issue Aug 23, 2024 · 1 comment
Assignees

Comments

@wungad
Copy link
Collaborator

wungad commented Aug 23, 2024

Interfaces that have physical presence on the system must be treated as iana-if-type:ethernetCsmacd.
VLAN sub-interfaces created on their respective parent interfaces must be treated as iana-if-tyepe:l2vlan. They must also have ietf-if-extensions:parent-interface node that identifies the parent interface name. Currently both are parsed as iana-if-type:ethernetCsmacd.

Example for vlan sub-interface net1.90 below:

<interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
  <interface>
    <name>net1.90</name>
    <type xmlns:ianaift="urn:ietf:params:xml:ns:yang:iana-if-type">ianaift:l2vlan</type>
    <enabled>true</enabled>
    <parent-interface xmlns="urn:ietf:params:xml:ns:yang:ietf-if-extensions">net1</parent-interface>
    <encapsulation xmlns="urn:ietf:params:xml:ns:yang:ietf-if-extensions">
        <dot1q-vlan xmlns="urn:ietf:params:xml:ns:yang:ietf-if-vlan-encapsulation">
            <outer-tag>
                <tag-type xmlns:dot1q-types="urn:ieee:std:802.1Q:yang:ieee802-dot1q-types" >dot1q-types:s-vlan</tag-type>
                <vlan-id>90</vlan-id>
            </outer-tag>
        </dot1q-vlan>
    </encapsulation">

  </interface>
</interfaces>
@precla precla self-assigned this Jan 16, 2025
@precla
Copy link
Collaborator

precla commented Jan 16, 2025

created MR: #8

please test

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

No branches or pull requests

2 participants