-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support specifying mac address without quotation mark
In yaml, all the string value consists of a series of one-digit or two-digit numbers delimited by colons and all numbers but the first are between 0 and 59, it would be interpreted as a sexagesimal number, and would be converted automatically to the equivalent number of seconds. The committed patch will guarantee to remediate the yaml's peculiarity and convert back into the mac address specified in the original yaml file. And in case that user specifies arbitrary integer(e.g. `mac:1234`), we introduce `force_len`(e.g. `MAC_ADDR_OCTETS = [6, 20]`) to raise error for invalid integer value. Signed-off-by: Wen Liang <[email protected]>
- Loading branch information
1 parent
cffefa8
commit 223ca16
Showing
3 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters