-
Notifications
You must be signed in to change notification settings - Fork 36
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 ordered names for guest devices #344
Conversation
* We will rely on the order specified in the incoming grpc request and the fact that serialization in go shouldn't change the order * We will update flintlock docs to say that if you care about the order of your network interfaces then you must specify them in the order from eth1,eth2,ethX * MMDS device is the first (eth0) > There is no relation between the numbering of the /network-interface > API calls and the number of the network interface in the guest. Rather, > it is usually the order of network interface creation that determines > the number in the guest (but this depends on the distribution). > > For example, when you create two network interfaces by calling > /network-interfaces/1 and then /network-interfaces/0, it may result in > this mapping: > > /network-interfaces/1 -> eth0 > /network-interfaces/0 -> eth1 Source: https://github.com/firecracker-microvm/firecracker/blob/83ec483d4254936e1e2fd4adfe94761611a74a93/FAQ.md#how-does-network-interface-numbering-work Fixes liquidmetal-dev#340
dc0dd32
to
ade5e62
Compare
Codecov Report
@@ Coverage Diff @@
## main #344 +/- ##
==========================================
+ Coverage 58.09% 58.20% +0.11%
==========================================
Files 51 51
Lines 2503 2505 +2
==========================================
+ Hits 1454 1458 +4
+ Misses 932 930 -2
Partials 117 117
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 tiny typos but otherwise lgtm
Co-authored-by: Claudia <claudiaberesford@gmail.com>
actually you'll probably also need to regenerate something after changing those comments |
What this PR does / why we need it:
the fact that serialization in go shouldn't change the order
of your network interfaces then you must specify them in the order
from eth1,eth2,ethX
Source: https://github.com/firecracker-microvm/firecracker/blob/83ec483d4254936e1e2fd4adfe94761611a74a93/FAQ.md#how-does-network-interface-numbering-work
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #340
Special notes for your reviewer:
Checklist: