Skip to content

Commit 5596eaa

Browse files
authored
Merge pull request #746 from nokia/refactor-interfaces
Simplify interfaces
2 parents b6d6785 + 5226032 commit 5596eaa

File tree

87 files changed

+1883
-2722
lines changed

Some content is hidden

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

87 files changed

+1883
-2722
lines changed

examples/deployments/1.single-instance/1.nats-output/containerlab/gnmic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ loader:
1616
type: docker
1717
filters:
1818
- containers:
19-
- label=clab-node-kind: srl
19+
- label=clab-node-kind: nokia_srlinux
2020
label=containerlab: lab11
2121

2222
subscriptions:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# © 2022 Nokia.
2+
#
3+
# This code is a Contribution to the gNMIc project (“Work”) made under the Google Software Grant and Corporate Contributor License Agreement (“CLA”) and governed by the Apache License 2.0.
4+
# No other rights or licenses in or to any of Nokia’s intellectual property are granted for any other purpose.
5+
# This code is provided on an “as is” basis without any warranties of any kind.
6+
#
7+
# SPDX-License-Identifier: Apache-2.0
8+
9+
username: admin
10+
password: NokiaSrl1!
11+
skip-verify: true
12+
encoding: json_ietf
13+
log: true
14+
15+
# docker target loader
16+
loader:
17+
type: docker
18+
filters:
19+
- containers:
20+
- label=clab-node-kind: nokia_srlinux
21+
label=containerlab: lab12
22+
23+
subscriptions:
24+
# Add subscriptions configuration here
25+
# e.g:
26+
sub1:
27+
paths:
28+
- /interface/statistics
29+
stream-mode: sample
30+
sample-interval: 10s
31+
32+
outputs:
33+
kafka-output:
34+
type: kafka
35+
address: clab-lab12-kafka-server:9092
36+
topic: telemetry
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# © 2022 Nokia.
2+
#
3+
# This code is a Contribution to the gNMIc project (“Work”) made under the Google Software Grant and Corporate Contributor License Agreement (“CLA”) and governed by the Apache License 2.0.
4+
# No other rights or licenses in or to any of Nokia’s intellectual property are granted for any other purpose.
5+
# This code is provided on an “as is” basis without any warranties of any kind.
6+
#
7+
# SPDX-License-Identifier: Apache-2.0
8+
9+
name: lab12
10+
11+
topology:
12+
defaults:
13+
kind: nokia_srlinux
14+
15+
kinds:
16+
nokia_srlinux:
17+
image: ghcr.io/nokia/srlinux
18+
19+
nodes:
20+
spine1:
21+
spine2:
22+
leaf1:
23+
leaf2:
24+
leaf3:
25+
leaf4:
26+
27+
gnmic:
28+
kind: linux
29+
image: ghcr.io/openconfig/gnmic:latest
30+
binds:
31+
- ./gnmic.yaml:/app/gnmic.yaml:ro
32+
- /var/run/docker.sock:/var/run/docker.sock
33+
cmd: '--config /app/gnmic.yaml --log subscribe'
34+
35+
kafka-server:
36+
kind: linux
37+
image: bitnami/kafka:latest
38+
ports:
39+
- 9092:9092
40+
- 9093:9093
41+
env:
42+
KAFKA_ENABLE_KRAFT: yes
43+
ALLOW_PLAINTEXT_LISTENER: yes
44+
KAFKA_CFG_NODE_ID: 0
45+
KAFKA_CFG_PROCESS_ROLES: broker,controller
46+
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
47+
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
48+
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
49+
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://clab-lab12-kafka-server:9092
50+
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@clab-lab12-kafka-server:9093
51+
52+
links:
53+
# spine1 links
54+
- endpoints: ["spine1:e1-1", "leaf1:e1-1"]
55+
- endpoints: ["spine1:e1-2", "leaf2:e1-1"]
56+
- endpoints: ["spine1:e1-3", "leaf3:e1-1"]
57+
- endpoints: ["spine1:e1-4", "leaf4:e1-1"]
58+
# spine2 links
59+
- endpoints: ["spine2:e1-1", "leaf1:e1-2"]
60+
- endpoints: ["spine2:e1-2", "leaf2:e1-2"]
61+
- endpoints: ["spine2:e1-3", "leaf3:e1-2"]
62+
- endpoints: ["spine2:e1-4", "leaf4:e1-2"]

examples/deployments/1.single-instance/2.kafka-output/containerlab/gnmic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ loader:
1717
type: docker
1818
filters:
1919
- containers:
20-
- label=clab-node-kind: srl
20+
- label=clab-node-kind: nokia_srlinux
2121
label=containerlab: lab12
2222

2323
subscriptions:

examples/deployments/1.single-instance/2.kafka-output/containerlab/kafka.clab.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ topology:
6262
- endpoints: ["spine2:e1-1", "leaf1:e1-2"]
6363
- endpoints: ["spine2:e1-2", "leaf2:e1-2"]
6464
- endpoints: ["spine2:e1-3", "leaf3:e1-2"]
65-
- endpoints: ["spine2:e1-4", "leaf4:e1-2"]
65+
- endpoints: ["spine2:e1-4", "leaf4:e1-2"]

examples/deployments/1.single-instance/3.influxdb-output/containerlab/gnmic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ loader:
1616
type: docker
1717
filters:
1818
- containers:
19-
- label=clab-node-kind: srl
19+
- label=clab-node-kind: nokia_srlinux
2020
label=containerlab: lab13
2121

2222
subscriptions:

examples/deployments/1.single-instance/4.prometheus-output/containerlab/gnmic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ loader:
1515
type: docker
1616
filters:
1717
- containers:
18-
- label=clab-node-kind: srl
18+
- label=clab-node-kind: nokia_srlinux
1919
label=containerlab: lab14
2020

2121
subscriptions:

examples/deployments/1.single-instance/4.prometheus-output/containerlab/prometheus.clab.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ mgmt:
1313

1414
topology:
1515
defaults:
16-
kind: srl
16+
kind: nokia_srlinux
1717

1818
kinds:
19-
srl:
19+
nokia_srlinux:
2020
image: ghcr.io/nokia/srlinux
2121

2222
nodes:

examples/deployments/1.single-instance/6.prometheus-write-output/containerlab/gnmic.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ loader:
1616
type: docker
1717
filters:
1818
- containers:
19-
- label=clab-node-kind: srl
19+
- label=clab-node-kind: nokia_srlinux
2020
label=containerlab: lab16
2121

2222
subscriptions:

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ require (
3838
github.com/mitchellh/go-homedir v1.1.0
3939
github.com/mitchellh/mapstructure v1.5.0
4040
github.com/nats-io/nats.go v1.38.0
41-
github.com/nats-io/stan.go v0.10.4
4241
github.com/nsf/termbox-go v1.1.1
4342
github.com/olekukonko/tablewriter v0.0.5
4443
github.com/openconfig/gnmi v0.11.0
@@ -115,6 +114,7 @@ require (
115114
github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect
116115
github.com/hairyhenderson/go-fsimpl v0.0.0-20220529183339-9deae3e35047 // indirect
117116
github.com/hairyhenderson/yaml v0.0.0-20220618171115-2d35fca545ce // indirect
117+
github.com/hashicorp/go-msgpack v1.1.5 // indirect
118118
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
119119
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.7 // indirect
120120
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
@@ -249,7 +249,6 @@ require (
249249
github.com/mattn/go-runewidth v0.0.15 // indirect
250250
github.com/mattn/go-tty v0.0.4 // indirect
251251
github.com/nats-io/nats-server/v2 v2.10.14 // indirect
252-
github.com/nats-io/nats-streaming-server v0.24.6 // indirect
253252
github.com/nats-io/nkeys v0.4.9 // indirect
254253
github.com/nats-io/nuid v1.0.1 // indirect
255254
github.com/openconfig/grpctunnel v0.1.0

0 commit comments

Comments
 (0)