Skip to content

Commit

Permalink
Merge pull request #1397 from srl-labs/rn-0.41.2
Browse files Browse the repository at this point in the history
Patch 0.41.2
  • Loading branch information
hellt committed May 18, 2023
2 parents 02ecec3 + 926f26a commit fe51f41
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 12 deletions.
21 changes: 12 additions & 9 deletions docs/lab-examples/ixp-lab.md → docs/lab-examples/peering-lab.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Internet eXchange Point (IXP) lab
---
comments: true
---
# Peering lab

Internet eXchange Points are the glue that connects the Internet. They are the physical locations where ISPs, CDNs and all other ASN holders connect to exchange traffic. While traffic exchange might sound simple, it is a complex process with lots of moving parts:

Expand All @@ -15,14 +18,14 @@ The guidelines and current best practices are best to be practiced in a lab envi

## Lab summary

| Summary | |
| ------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Lab name** | IXP Lab |
| **Lab components** | [Nokia SR OS][nokia-sros], [FRRouting (FRR)][frr], [OpenBGPd][openbgpd] and [BIRD][bird] route servers |
| **Resource requirements** | :fontawesome-solid-microchip: 2 vCPU <br/>:fontawesome-solid-memory: 6 GB |
| **Lab** | [hellt/sros-frr-ixp-lab][lab] |
| **Version information** | [`containerlab:0.39.0`][clab-install], `Nokia SR OS:23.3.R1`, [`FRR:8.4.1`][frr-container], [`BIRD:2.0.11`][bird-container], [`openbgpd:7.9`][obgpd-container] |
| **Authors** | Roman Dodin [:material-twitter:][rd-twitter] [:material-linkedin:][rd-linkedin] |
| Summary | |
| ------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Lab name** | Peering Lab |
| **Lab components** | [Nokia SR OS][nokia-sros], [FRRouting (FRR)][frr], [OpenBGPd][openbgpd] and [BIRD][bird] route servers |
| **Resource requirements** | :fontawesome-solid-microchip: 2 vCPU <br/>:fontawesome-solid-memory: 6 GB |
| **Lab** | [hellt/sros-frr-ixp-lab][lab] |
| **Version information** | [`containerlab:0.41.1`][clab-install], `Nokia SR OS:23.3.R1`, [`FRR:8.4.1`][frr-container], [`BIRD:2.0.11`][bird-container], [`openbgpd:7.9`][obgpd-container] |
| **Authors** | Roman Dodin [:material-twitter:][rd-twitter] [:material-linkedin:][rd-linkedin] |

## Prerequisites

Expand Down
38 changes: 38 additions & 0 deletions docs/overrides/partials/comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{% if page.meta.comments %}
<h2 id="__comments">{{ lang.t("meta.comments") }}</h2>
<script src="https://giscus.app/client.js" data-repo="srl-labs/containerlab"
data-repo-id="MDEwOlJlcG9zaXRvcnkyOTA5NjA1MjE=" data-category="comments" data-category-id="DIC_kwDOEVe0ic4CWivD"
data-mapping="title" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom"
data-theme="preferred_color_scheme" data-lang="en" data-loading="lazy" crossorigin="anonymous" async>
</script>

<!-- Synchronize Giscus theme with palette -->
<script>
var giscus = document.querySelector("script[src*=giscus]")

/* Set palette on initial load */
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "slate" ? "dark" : "light"
giscus.setAttribute("data-theme", theme)
}

/* Register event handlers after documented loaded */
document.addEventListener("DOMContentLoaded", function () {
var ref = document.querySelector("[data-md-component=palette]")
ref.addEventListener("change", function () {
var palette = __md_get("__palette")
if (palette && typeof palette.color === "object") {
var theme = palette.color.scheme === "slate" ? "dark" : "light"

/* Instruct Giscus to change theme */
var frame = document.querySelector(".giscus-frame")
frame.contentWindow.postMessage(
{ giscus: { setConfig: { theme } } },
"https://giscus.app"
)
}
})
})
</script>
{% endif %}
4 changes: 4 additions & 0 deletions docs/rn/0.41.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,7 @@ The deprecated fields will stay for a few months and a log message will be print
* Fixed public keys population for password-less SSH access for SR Linux nodes #1384
* Added support for extracting public keys from SSH agent #1388
* Added json_schema types for SR OS #1387

### 0.41.2

* fix an issue where deprecated `mgmt_ipv6` overwrites `mgmt_ipv4` value #1397
3 changes: 2 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ nav:
- Nokia SR Linux and SONiC: lab-examples/srl-sonic.md
- External bridge capability: lab-examples/ext-bridge.md
- WAN topology: lab-examples/wan.md
- IXP (Internet eXchange Point) lab: lab-examples/ixp-lab.md
- Peering lab: lab-examples/peering-lab.md
- Nokia SR Linux and Nokia SR OS: lab-examples/vr-sros.md
- Nokia SR Linux and Juniper vMX: lab-examples/vr-vmx.md
- Nokia SR Linux and Cisco XRd: lab-examples/srl-xrd.md
Expand Down Expand Up @@ -202,6 +202,7 @@ plugins:
- redirects:
redirect_maps:
lab-examples/tls-cert.md: https://clabs.netdevops.me/security/gnmitls/
lab-examples/ixp-lab.md: lab-examples/peering-lab.md
- typeset
- glightbox

Expand Down
2 changes: 2 additions & 0 deletions tests/01-smoke/01-linux-nodes.clab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ topology:
- cat /etc/os-release
cpu: 1.5
memory: 1G
mgmt_ipv4: 172.20.20.99 # test deprecated mgmt_ipv4 still works
mgmt_ipv6: 2001:172:20:20::99 # test deprecated mgmt_ipv6 still works
l2:
kind: linux
image: nginx:stable-alpine
Expand Down
2 changes: 1 addition & 1 deletion types/node_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (n *NodeDefinition) UnmarshalYAML(unmarshal func(interface{}) error) error

if len(nd.DeprecatedMgmtIPv6) > 0 && len(nd.MgmtIPv6) == 0 {
log.Warnf("Attribute \"mgmt_ipv6\" is deprecated and will be removed in future. Change it to \"mgmt-ipv6\"")
nd.MgmtIPv4 = nd.DeprecatedMgmtIPv6
nd.MgmtIPv6 = nd.DeprecatedMgmtIPv6
}

*n = (NodeDefinition)(nd.NodeDefinitionAlias)
Expand Down
2 changes: 1 addition & 1 deletion types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (m *MgmtNet) UnmarshalYAML(unmarshal func(interface{}) error) error {
// map old to new if old defined but new not
if len(mn.DeprecatedIPv6Subnet) > 0 && len(mn.IPv6Subnet) == 0 {
log.Warnf("Attribute \"ipv6_subnet\" is deprecated and will be removed in the future. Change it to \"ipv6-subnet\"")
mn.IPv4Subnet = mn.DeprecatedIPv6Subnet
mn.IPv6Subnet = mn.DeprecatedIPv6Subnet
}

*m = (MgmtNet)(mn.MgmtNetAlias)
Expand Down

0 comments on commit fe51f41

Please sign in to comment.