-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sonic-cfggen]: Add -p option and add teamd.j2 test (#414)
- Add -p --port-config option to feed sonic-cfggen with port_config.ini file when necessary. - Update minigraph.py file to accept the -p option - Add test_j2files.py test to test config.sh and all .j2 templates * Currently test_teamd is added to test both the config.sh and teamd.j2 file works well with the t0 sample minigraph and sample port config file * The sample output is added to the folder sample_output for comparison Signed-off-by: Shuotian Cheng <[email protected]>
- Loading branch information
Shuotian Cheng
authored
Mar 18, 2017
1 parent
4212efd
commit 7b7a616
Showing
12 changed files
with
470 additions
and
9 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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__pycache__ |
16 changes: 16 additions & 0 deletions
16
src/sonic-config-engine/tests/sample_output/PortChannel01.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"device": "PortChannel01", | ||
"runner": { | ||
"name": "lacp", | ||
"active": true, | ||
"min_ports": 1, | ||
"tx_hash": ["eth", "ipv4", "ipv6"] | ||
}, | ||
"link_watch": { | ||
"name": "ethtool" | ||
}, | ||
"ports": { | ||
"Ethernet112": {} | ||
} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
src/sonic-config-engine/tests/sample_output/PortChannel02.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"device": "PortChannel02", | ||
"runner": { | ||
"name": "lacp", | ||
"active": true, | ||
"min_ports": 1, | ||
"tx_hash": ["eth", "ipv4", "ipv6"] | ||
}, | ||
"link_watch": { | ||
"name": "ethtool" | ||
}, | ||
"ports": { | ||
"Ethernet116": {} | ||
} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
src/sonic-config-engine/tests/sample_output/PortChannel03.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"device": "PortChannel03", | ||
"runner": { | ||
"name": "lacp", | ||
"active": true, | ||
"min_ports": 1, | ||
"tx_hash": ["eth", "ipv4", "ipv6"] | ||
}, | ||
"link_watch": { | ||
"name": "ethtool" | ||
}, | ||
"ports": { | ||
"Ethernet120": {} | ||
} | ||
} | ||
|
16 changes: 16 additions & 0 deletions
16
src/sonic-config-engine/tests/sample_output/PortChannel04.conf
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"device": "PortChannel04", | ||
"runner": { | ||
"name": "lacp", | ||
"active": true, | ||
"min_ports": 1, | ||
"tx_hash": ["eth", "ipv4", "ipv6"] | ||
}, | ||
"link_watch": { | ||
"name": "ethtool" | ||
}, | ||
"ports": { | ||
"Ethernet124": {} | ||
} | ||
} | ||
|
Oops, something went wrong.