Skip to content

Commit

Permalink
added sxr topologies (#1618)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt authored Oct 6, 2023
1 parent f15864b commit 0cb7612
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 19 deletions.
4 changes: 3 additions & 1 deletion docs/manual/kinds/srl.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ For SR Linux nodes [`type`](../nodes.md#type) defines the hardware variant that

The available type values are: `ixrd1`, `ixrd2`, `ixrd3`, `ixrd2l`, `ixrd3l`, `ixrd4`, `ixrd5`, `ixrd5t`, `ixrh2`, `ixrh3` and `ixrh4`, which correspond to a hardware variant of Nokia 7220 IXR chassis.

Nokia 7250 IXR chassis identified with types `ixr6e` and `ixr10e` require a valid license to boot.
Nokia 7250 IXR chassis identified with types `ixr6e` and `ixr10e` require a valid license to operate.

Nokia 7730 SXR models are identified with types `sxr1x44s`, `sxr1d32d` and require a valid license to operate.

If type is not set in the clab file `ixrd2` value will be used by containerlab.

Expand Down
33 changes: 17 additions & 16 deletions nodes/srl/srl.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,23 @@ var (
defaultCredentials = nodes.NewCredentials("admin", "NokiaSrl1!")

srlTypes = map[string]string{
"ixrd1": "7220IXRD1.yml",
"ixrd2": "7220IXRD2.yml",
"ixrd3": "7220IXRD3.yml",
"ixrd2l": "7220IXRD2L.yml",
"ixrd3l": "7220IXRD3L.yml",
"ixrd4": "7220IXRD4.yml",
"ixrd5": "7220IXRD5.yml",
"ixrd5t": "7220IXRD5T.yml",
"ixrh2": "7220IXRH2.yml",
"ixrh3": "7220IXRH3.yml",
"ixrh4": "7220IXRH4.yml",
"ixr6": "7250IXR6.yml",
"ixr6e": "7250IXR6e.yml",
"ixr10": "7250IXR10.yml",
"ixr10e": "7250IXR10e.yml",
"fiji": "fiji.yml",
"ixrd1": "7220IXRD1.yml",
"ixrd2": "7220IXRD2.yml",
"ixrd3": "7220IXRD3.yml",
"ixrd2l": "7220IXRD2L.yml",
"ixrd3l": "7220IXRD3L.yml",
"ixrd4": "7220IXRD4.yml",
"ixrd5": "7220IXRD5.yml",
"ixrd5t": "7220IXRD5T.yml",
"ixrh2": "7220IXRH2.yml",
"ixrh3": "7220IXRH3.yml",
"ixrh4": "7220IXRH4.yml",
"ixr6": "7250IXR6.yml",
"ixr6e": "7250IXR6e.yml",
"ixr10": "7250IXR10.yml",
"ixr10e": "7250IXR10e.yml",
"sxr1x44s": "7730SXR-1x-44s.yml",
"sxr1d32d": "7730SXR-1d-32d.yml",
}

srlEnv = map[string]string{"SRLINUX": "1"}
Expand Down
13 changes: 13 additions & 0 deletions nodes/srl/topology/7730SXR-1d-32d.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 2023 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause

chassis_configuration:
"chassis_type": 54
"base_mac": "{{ .MAC }}"
"cpm_card_type": 11

slot_configuration:
1:
"card_type": 11
"mda_type": 201
File renamed without changes.
6 changes: 4 additions & 2 deletions schemas/clab.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,9 @@
"ixr6",
"ixr6e",
"ixr10",
"ixr10e"
"ixr10e",
"sxr1x44s",
"sxr1d32d"
]
}
}
Expand Down Expand Up @@ -826,4 +828,4 @@
"name",
"topology"
]
}
}

0 comments on commit 0cb7612

Please sign in to comment.