Skip to content

Commit 8051b90

Browse files
committed
commit with tag nightly-24.10.26c
1 parent 6648d2f commit 8051b90

File tree

248 files changed

+45345
-22
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+45345
-22
lines changed

.github/workflows/docker-ci-v4.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Docker Image CI V4
2+
3+
on: [workflow_dispatch]
4+
5+
env:
6+
REGISTRY: ghcr.io
7+
IMAGE_NAME: ${{ github.repository }}
8+
9+
jobs:
10+
build-and-push-image:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- name: Checkout repository with Git LFS
18+
uses: actions/checkout@v3
19+
with:
20+
lfs: true # Ensure LFS files are downloaded
21+
22+
- name: Set up Git LFS
23+
run: git lfs install
24+
25+
- name: Pull LFS files
26+
run: git lfs pull # Ensure large files are pulled from LFS
27+
28+
- name: Log in to the Container registry
29+
uses: docker/login-action@v2
30+
with:
31+
registry: ${{ env.REGISTRY }}
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Extract metadata (tags, labels) for Docker
36+
id: meta
37+
uses: docker/metadata-action@v4
38+
with:
39+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
40+
tags: |
41+
type=ref,event=branch
42+
type=ref,event=pr
43+
type=ref,event=tag
44+
45+
- name: Build and push Docker image
46+
uses: docker/build-push-action@v4
47+
with:
48+
context: .
49+
push: true
50+
tags: ${{ steps.meta.outputs.tags }}
51+
labels: ${{ steps.meta.outputs.labels }}

dist/dist.zip

2 Bytes
Binary file not shown.

dist/topoviewer

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:eac773fb054b9836fb95741b7701e9e13602c2aa8db3d6a74332b7892cdd2296
2+
oid sha256:62045bce01d9722515b46ec9bf5de533c17d9a090105a46a98140c0427917ffd
33
size 77787288

go_cloudshellwrapper/constants.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cloudshellwrapper
22

3-
var VersionInfo string = "nightly-24.10.26b"
3+
var VersionInfo string = "nightly-24.10.26c"
44

55
// create html-public files
66
var HtmlPublicPrefixPath string = "./html-public/"

go_cloudshellwrapper/constants.go.bak

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package cloudshellwrapper
22

3-
var VersionInfo string = "nightly-24.10.26a"
3+
var VersionInfo string = "nightly-24.10.26b"
44

55
// create html-public files
66
var HtmlPublicPrefixPath string = "./html-public/"
Binary file not shown.

rawTopoFile/.topo-clab-demo.yaml.bak

+13-8
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,31 @@ topology:
66

77
topoviewer:
88
kind: linux
9-
image: ghcr.io/asadarafat/topoviewer:latest
9+
image: ghcr.io/asadarafat/topoviewer:nightly-24.10.26b
1010
ports:
1111
- 8088:8088
1212
startup-delay: 5
1313
binds:
1414
- /var/run/docker.sock:/var/run/docker.sock:ro
15-
### This is to access docker.sock from topoviewer container
16-
- __clabDir__/topology-data.json:/opt/topoviewer/local-bind/topo-file.json:ro
17-
### __clabDir__/topology-data.json is path to clab's json file which generated by "clab --export-template" and /opt/topoviewer/local-bind/topo-file.json is the mount path of topoviever's topology file.
18-
- ../dist/topoviewer:/opt/topoviewer/topoviewer:ro
19-
- ./topo-clab-demo.yaml:/opt/topoviewer/local-bind/topo-file.yaml:ro
20-
- entrypoint.sh:/opt/topoviewer/local-bind/entrypoint.sh:ro
15+
# - __clabDir__/topology-data.json:/opt/topoviewer/local-bind/topo-file.json:ro
16+
17+
# - ./topo-clab-demo.yaml:/opt/topoviewer/local-bind/topo-file.yaml:ro
18+
# - entrypoint.sh:/opt/topoviewer/local-bind/entrypoint.sh:ro
19+
# - entrypoint.sh:/opt/topoviewer/entrypoint.sh:ro
20+
21+
### __clabDir__/topology-data.json is path to clab's json file which generated by "clab --export-template" and /opt/topoviewer/local-bind/topo-file.json is the mount path of topoviever's topology file.
22+
# - ../dist/topoviewer:/opt/topoviewer/topoviewer:ro
23+
### This is to access docker.sock from topoviewer container
24+
25+
2126

2227

2328

2429

2530
env:
2631
ALLOWED_HOSTNAME: "nsp-clab1.nice.nokia.net"
2732
CLAB_USER: "asad"
28-
CLAB_PASS: "password"
33+
CLAB_PASS: "Lab-Her0"
2934
SERVER_PORT: "8088"
3035
### These are the environment variables for topoviewer container
3136

rawTopoFile/topo-clab-demo.yaml

+13-8
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,31 @@ topology:
66

77
topoviewer:
88
kind: linux
9-
image: ghcr.io/asadarafat/topoviewer:latest
9+
image: ghcr.io/asadarafat/topoviewer:nightly-24.10.26b
1010
ports:
1111
- 8088:8088
1212
startup-delay: 5
1313
binds:
1414
- /var/run/docker.sock:/var/run/docker.sock:ro
15-
### This is to access docker.sock from topoviewer container
16-
- __clabDir__/topology-data.json:/opt/topoviewer/local-bind/topo-file.json:ro
17-
### __clabDir__/topology-data.json is path to clab's json file which generated by "clab --export-template" and /opt/topoviewer/local-bind/topo-file.json is the mount path of topoviever's topology file.
18-
- ../dist/topoviewer:/opt/topoviewer/topoviewer:ro
19-
- ./topo-clab-demo.yaml:/opt/topoviewer/local-bind/topo-file.yaml:ro
20-
- entrypoint.sh:/opt/topoviewer/local-bind/entrypoint.sh:ro
15+
# - __clabDir__/topology-data.json:/opt/topoviewer/local-bind/topo-file.json:ro
16+
17+
# - ./topo-clab-demo.yaml:/opt/topoviewer/local-bind/topo-file.yaml:ro
18+
# - entrypoint.sh:/opt/topoviewer/local-bind/entrypoint.sh:ro
19+
# - entrypoint.sh:/opt/topoviewer/entrypoint.sh:ro
20+
21+
### __clabDir__/topology-data.json is path to clab's json file which generated by "clab --export-template" and /opt/topoviewer/local-bind/topo-file.json is the mount path of topoviever's topology file.
22+
# - ../dist/topoviewer:/opt/topoviewer/topoviewer:ro
23+
### This is to access docker.sock from topoviewer container
24+
25+
2126

2227

2328

2429

2530
env:
2631
ALLOWED_HOSTNAME: "nsp-clab1.nice.nokia.net"
2732
CLAB_USER: "asad"
28-
CLAB_PASS: "password"
33+
CLAB_PASS: "Lab-Her0"
2934
SERVER_PORT: "8088"
3035
### These are the environment variables for topoviewer container
3136

Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{{/* This template support containerlab version: 0.44.3 */}}
2+
{
3+
"name": "{{ .Name }}",
4+
"type": "{{ .Type }}",
5+
{{ $labName := .Name }}
6+
{{ $type := .Type }}
7+
"clab": {
8+
"config": {
9+
"prefix": "{{ .Clab.Config.Prefix }}",
10+
"mgmt": {{ ToJSONPretty .Clab.Config.Mgmt " " " "}}
11+
}
12+
},
13+
"nodes": [
14+
{{- $i:=0 }}{{range $n, $c := .NodeConfigs}}{{if $i}},{{end}}
15+
{
16+
"id": "{{$n}}",
17+
"index": "{{$c.Index}}",
18+
"shortname": "{{$c.ShortName}}",
19+
"longname": "{{$c.LongName}}",
20+
"fqdn": "{{$c.Fqdn}}",
21+
"group": "{{$c.Group}}",
22+
"labdir": "{{$c.LabDir}}",
23+
"kind": "{{$c.Kind}}",
24+
"image": "{{$c.Image}}",
25+
"mgmt-net": "{{$c.MgmtNet}}",
26+
"mgmt-intf": "{{$c.MgmtIntf}}",
27+
"mgmt-ipv4-address": "{{$c.MgmtIPv4Address}}",
28+
"mgmt-ipv4-prefix-length": {{$c.MgmtIPv4PrefixLength}},
29+
"mgmt-ipv6-address": "{{$c.MgmtIPv6Address}}",
30+
"mgmt-ipv6-prefix-length": {{$c.MgmtIPv6PrefixLength}},
31+
"mac-address": "{{$c.MacAddress}}",
32+
"labels": {{ToJSONPretty $c.Labels " " " "}}
33+
{{$i = add $i 1}}}{{end}}
34+
],
35+
"links": [{{range $i, $l := .Clab.Links}}{{if $i}},{{end}}{{ $endpointA := index $l.Endpoints 0 }}{{ $endpointB := index $l.Endpoints 1 }}{{ $endpointAList := split (printf "%s"
36+
$endpointA) ":" }}{{ $endpointBList := split (printf "%s" $endpointB) ":" }}
37+
{{- $eps := $l.GetEndpoints }}
38+
{{- $ep := index $eps 0 }}
39+
{
40+
"a": {
41+
"node": "{{ index $endpointAList 0 }}",
42+
"nodeLongName": "{{ $type }}-{{ $labName}}-{{ index $endpointAList 0 }}",
43+
"interface": "{{ $ep.GetIfaceName }}",
44+
"mac": "{{ $ep.GetMac }}",
45+
"peer": "z"
46+
},
47+
{{- $ep := index $eps 1 }}
48+
"z": {
49+
"node": "{{ index $endpointBList 0 }}",
50+
"nodeLongName": "{{ $type }}-{{ $labName}}-{{ index $endpointBList 0 }}",
51+
"interface": "{{ $ep.GetIfaceName }}",
52+
"mac": "{{ $ep.GetMac }}",
53+
"peer": "a"
54+
}
55+
}{{end}}
56+
]
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
loki:
2+
url: "http://100.124.41.83:3100"
3+
4+
ssh:
5+
remoteHost: "100.124.41.65"
6+
remotePort: "22"
7+
remoteUser: "asad"
8+
remotePassword: "Lab-Her0"
9+
10+
pods:
11+
- namespace: "nsp-psa-restricted"
12+
podName: "nspos-app2-tomcat"
13+
podNameWildCard: true
14+
containerName: "nspos-app2-tomcat"
15+
logFilePath: "tail -f /opt/nsp/os/app2-tomcat/logs/restconf.log"
16+
- namespace: "nsp-psa-privileged"
17+
podName: "mdm-server-0"
18+
podNameWildCard: false
19+
containerName: "cn-nsp-mdm-server"
20+
logFilePath: "tail -f /opt/nsp/mediation/log/MdmServer.log"
21+
- namespace: "nsp-psa-restricted"
22+
podName: "nspos-resync-fw-0"
23+
podNameWildCard: false
24+
containerName: "md-resync-fw"
25+
logFilePath: "tail -f /opt/nsp/os/resync-fw/logs/mdResync.log"
26+
- namespace: "nsp-psa-restricted"
27+
podName: "nsp-mdt-ac-0"
28+
podNameWildCard: false
29+
containerName: "nsp-mdt-ac"
30+
logFilePath: " /bin/sh -c './bin/client <<< \"log; tail;\"' "
31+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
client_cert_file: /home/aarafat/atlantic-client.cer.pem
2+
client_key_file: /home/aarafat/atlantic-client.key.pem
3+
ca_cert_file: /home/aarafat/atlantic-server.cer.pem
4+
kafka_brokers:
5+
- atlanticnsp.nice.nokia.net:9192
6+
topic: nsp-yang-model.change-notif
7+
offset_strategy: latest
8+
num_latest_events: 50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
topoviewer:
2+
env: "development"
3+
consumerbroker: "first.example.com:9092"
4+
producerbroker: "second.example.com:9092"
5+
6+
nsp:
7+
nspOsIP: "thalesnsp.ion.de.alcatel-lucent.com" # API gateway
8+
nspIprcIP: "thalesnsp.ion.de.alcatel-lucent.com" # API gateway
9+
username: "admin"
10+
password: "NokiaNsp1!"
11+
nspIeftTopoL2: "rawTopoFile/topo-ietf-L2.json"
12+
nspIeftTopoL3_0: "rawTopoFile/topo-ietf-L3-TopologyId-0:55000:2-isis.json"
13+
nspIeftTopoL3_1: "rawTopoFile/topo-ietf-L3-TopologyId-1:65000:1-isis.json"
14+
nspIeftTopoL3_2: "rawTopoFile/topo-ietf-L3-TopologyId-0:65000:1-isis.json"
15+
multi-layer: "enabled"
16+
17+
18+
19+
# nspOsIP: "147.75.102.178" # API gateway
20+
# nspIprcIP: "147.75.102.178" # API gateway
21+
# username: "admin"
22+
# password: "zkw3VSs6"

rawTopoFile/topoviewer/dist.zip

29.1 MB
Binary file not shown.

rawTopoFile/topoviewer/entrypoint.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
/opt/topoviewer/topoviewer clab --allowed-hostnames $ALLOWED_HOSTNAME --clab-user $CLAB_USER --clab-pass $CLAB_PASS --server-port $SERVER_PORT --topology-file-yaml local-bind/topo-file.yaml &

rawTopoFile/topoviewer/html-public/put-html-asset-here.txt

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
This is python action script for backup and restore
2+
3+
install python requirement
4+
```
5+
pip3 install -r requirements.txt --user
6+
```
7+
8+
```
9+
usage: backupRestoreScript.py --ip_address IPADDRESS --username USERNAME --password PASSWORD --devicename DEVICENAME --kind KIND --directory DIRECTORY [--backup] [--restore]
10+
11+
Examples:
12+
python3 backupRestoreScript.py --ip_address 10.2.1.110 --username admin --password admin --devicename Router1 --directory /path/to/backup --backup
13+
python3 backupRestoreScript.py --ip_address 10.2.1.110 --username admin --password admin --devicename Router1 --directory /path/to/backup --restore
14+
15+
Backup and Restore device configuration.
16+
17+
optional arguments:
18+
-h, --help show this help message and exit
19+
--ip_address IP_ADDRESS
20+
IP address of the device
21+
--username USERNAME Username for SSH login
22+
--password PASSWORD Password for SSH login
23+
--devicename DEVICENAME
24+
Name of the device for backup/restore file naming
25+
--directory DIRECTORY, -d DIRECTORY
26+
Directory where backup/restore files should be saved
27+
--kind KIND Device kind ie: sros
28+
--backup Backup the device configuration
29+
--restore Restore the configuration
30+
```

0 commit comments

Comments
 (0)