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

Using TAP device with simple_switch #1294

Open
lmunch opened this issue Feb 27, 2025 · 2 comments
Open

Using TAP device with simple_switch #1294

lmunch opened this issue Feb 27, 2025 · 2 comments

Comments

@lmunch
Copy link

lmunch commented Feb 27, 2025

I attempted to use TAP devices without success. I created the TAP device as follows:

ip tuntap add mode tap dev tap0
ip link set tap0 up

Then, I started simple_switch with:

sudo simple_switch_grpc --log-console -L debug -i 0@tap0

A quick grep through the code suggests that TAP devices are not supported. Supporting them would simplify switch usage compared to using veth pairs.

Is this something you would consider adding?

Thanks

@jafingerhut
Copy link
Contributor

I attempted to use TAP devices without success. I created the TAP device as follows:

ip tuntap add mode tap dev tap0
ip link set tap0 up

Then, I started simple_switch with:

sudo simple_switch_grpc --log-console -L debug -i 0@tap0

A quick grep through the code suggests that TAP devices are not supported. Supporting them would simplify switch usage compared to using veth pairs.

Is this something you would consider adding?

Thanks

There are currently no people who are regularly adding features to this code. I have added small things in my hobby time on occasion over several years, and do not personally have interest in such a feature, as veth pairs do the job I want them to. By creating this issue, you might get the attention of someone who wishes to add this support, but depending on who looks and what they would be interested in working on, it might be a long time, if ever.

@jafingerhut
Copy link
Contributor

FYI, I answered your question thinking that you were asking "is this a featre that some other person is considering adding?". If you were asking because you were interested in adding the feature, then by all means, please go ahead!

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