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

EOS: extract 25gfull #8106

Merged
merged 1 commit into from
Mar 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4641,6 +4641,7 @@ TUNNEL_RIB: 'tunnel-rib';

TUNNELED: 'tunneled';

TWENTY_FIVEG_FULL: '25gfull';
TWENTY_FIVE_GBASE_CR: '25gbase-cr';

TX_QUEUE: 'tx-queue';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ eos_bandwidth_specifier
:
FORTYG_FULL
| ONE_HUNDREDG_FULL
| TEN_THOUSAND_FULL
| ONE_HUNDRED_FULL
| ONE_THOUSAND_FULL
| TEN_THOUSAND_FULL
| TWENTY_FIVEG_FULL
;

eos_vxlan_if_inner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5249,14 +5249,16 @@ public void exitIf_speed_forced_eos(If_speed_forced_eosContext ctx) {
private double toBandwidth(Eos_bandwidth_specifierContext ctx) {
if (ctx.FORTYG_FULL() != null) {
return 40E9D;
} else if (ctx.TEN_THOUSAND_FULL() != null) {
return 10E9D;
} else if (ctx.ONE_HUNDRED_FULL() != null) {
return 100E6D;
} else if (ctx.ONE_THOUSAND_FULL() != null) {
return 1E9D;
} else if (ctx.ONE_HUNDREDG_FULL() != null) {
return 100E9D;
} else if (ctx.TEN_THOUSAND_FULL() != null) {
return 10E9D;
} else if (ctx.TWENTY_FIVEG_FULL() != null) {
return 25E9D;
} else {
throw convError(Double.class, ctx);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ interface Ethernet1/1
no mac timestamp
speed auto
speed auto 100full
speed forced 25gfull
speed forced 40gfull
speed forced 100gfull
speed forced 1000full
Expand Down