Comments (4)
Is there a strong reason to use the implicit logic of "first element in the array is special" vs having an explicit field to define the default MAC in addition to an array of equally non-special additional MACs?
from vfd.
One less field to document, one less field for someone to forget to change. If you feel strongly about having a specific default field, then I'd suggest this change to the overall json (quotes omitted for simplicity):
macs: {
default: 04:30:86:11:04:17,
whilte_list [ m1, m2, ... mn ]
}
We'd have to support the old style for a while for backward compatibility.
from vfd.
I would say that the "specialness" of the first element in the array ought to be documented, so doesn't save much documentation to document a separate field. The JSON you proposed looks exactly how I think it ought to look. I would suggest that a default or sample config file should include comment lines that indicate that if default MAC is missing it will be generated randomly (if you still want to support the random MAC generation you mentioned) and that if white_list is present that it will cause "set mac-vlan" callbacks to be ignored.
from vfd.
Agree; the use of the first address as the default is already documented and is the current behaviour, as is the generation of the random address if the array is missing. Regardless doc changes are needed.
from vfd.
Related Issues (20)
- VF TC qshare percentage HOT 1
- VF configuration not reset upon VFD termination
- Add VF with multiple mac addresses is failing in nic_agnostic branch HOT 1
- wrong qshare array calculation HOT 1
- Check configuration name when deleting a configuration HOT 2
- Potential configuration file race condition HOT 2
- Delete of a configuration without fully qualified name fails HOT 1
- Don't reject duplicate add if parms are identical
- Seg fault when VF MAC list has empty string HOT 1
- Duplicate PF/VF in different config files cause guest issues HOT 2
- VFd attempts to set a nil MAC into the PF/VF whitelist HOT 1
- VFd core dumps when a VF config has invalid pciid HOT 1
- Looks like there's missing brackets here... HOT 2
- missing break in vfd_bnxt.c? HOT 1
- Hole left in MAC list for VF HOT 1
- Error while configuring Mirroring HOT 7
- No response if unknown request received from iplex HOT 1
- VFd init script should select a CPU for VFd based on config
- VF bound to Kernel driver HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vfd.