Skip to content

Commit

Permalink
changed xrv9k defaults (#1806)
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt authored Jan 7, 2024
1 parent e10b5c4 commit f13abba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions docs/manual/kinds/vr-xrv9k.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,22 @@ search:

Cisco XRv9k nodes launched with containerlab come up pre-provisioned with SSH, SNMP, NETCONF and gNMI (if available) services enabled.

!!!warning
XRv9k node is a resource hungry image. As of XRv9k 7.2.1 version the minimum resources should be set to 2vcpu/14GB. These are the default setting set with containerlab for this kind.
Image will take 25 minutes to fully boot, be patient. You can monitor the loading status with `docker logs -f <container-name>`.
/// warning "Resource requirements"
XRv9k node is a resource hungry image. As of XRv9k 7.2.1 version the minimum resources should be set to 2vcpu/14GB. To be safe the defaults used in containerlab are 2vCPU/16G RAM.
Image may take 25 minutes to fully boot, be patient. You can monitor the loading status with `docker logs -f <container-name>`.

If you need to tune the allocated resources, you can do so with setting `VCPU` and `RAM` environment variables for the node. For example, to set 4vcpu/16GB for the node:

```yaml
iosxr:
kind: cisco_xrv9k
image: vr-xrv9k:7.10.1
env:
VCPU: 4
RAM: 16384
```
///
## Managing Cisco XRv9k nodes
Expand Down
2 changes: 1 addition & 1 deletion nodes/vr_xrv9k/vr-xrv9k.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (n *vrXRV9K) Init(cfg *types.NodeConfig, opts ...nodes.NodeOption) error {
"PASSWORD": defaultCredentials.GetPassword(),
"CONNECTION_MODE": nodes.VrDefConnMode,
"VCPU": "2",
"RAM": "12288",
"RAM": "16384",
"DOCKER_NET_V4_ADDR": n.Mgmt.IPv4Subnet,
"DOCKER_NET_V6_ADDR": n.Mgmt.IPv6Subnet,
}
Expand Down

0 comments on commit f13abba

Please sign in to comment.