Skip to content

Commit

Permalink
Merge pull request #106 from Telecominfraproject/fix/add_missed_configs
Browse files Browse the repository at this point in the history
Utils: Kafka: add missing cfg samples
  • Loading branch information
SviatoslavBoichuk authored Dec 10, 2024
2 parents 932b211 + 3e63d06 commit 3326b12
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 0 deletions.
48 changes: 48 additions & 0 deletions utils/kafka_producer/kafka_data/cfg_ap_basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"jsonrpc": "2.0",
"method": "configure",
"params": {
"serial": "MAC_PLACEHOLDER",
"uuid": UUID_PLACEHOLDER,
"when": 0,
"config": {
"ethernet": [
{
"enabled": true,
"select-ports": [
"LAN1"
]
},
{
"enabled": true,
"select-ports": [
"LAN2"
]
}
],
"interfaces": [
{
"ethernet": [
{
"select-ports": [
"WAN*",
"LAN1",
"LAN2"
]
}
],
"ipv4": {
"addressing": "dynamic"
},
"name": "WAN",
"role": "upstream",
"services": [
"lldp",
"mdns"
]
}
],
"uuid": UUID_PLACEHOLDER
}
}
}
48 changes: 48 additions & 0 deletions utils/kafka_producer/kafka_data/cfg_ap_basic_invalid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"jsonrpc": "2.0",
"method": "configure",
"params": {
"serial": "MAC_PLACEHOLDER",
"uuid": UUID_PLACEHOLDER,
"when": WHEN_PLACEHOLDER,
"config": {
"ethernet": [
{
"enabled": "YES, TOTALLY ENABLE IT",
"select-ports": [
"LAN1"
]
},
{
"enabled": true,
"select-ports": [
"LAN2"
]
}
],
"interfaces": [
{
"ethernet": [
{
"select-ports": [
"WAN*",
"LAN1",
"LAN2"
]
}
],
"ipv4": {
"addressing": "dynamic"
},
"name": "WAN",
"role": "upstream",
"services": [
"lldp",
"mdns"
]
}
],
"uuid": UUID_PLACEHOLDER
}
}
}
56 changes: 56 additions & 0 deletions utils/kafka_producer/kafka_data/cfg_switch_basic.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"jsonrpc": "2.0",
"method": "configure",
"params": {
"serial": "MAC_PLACEHOLDER",
"uuid": UUID_PLACEHOLDER,
"when": 0,
"config": {
"services": {},
"ethernet": [
{
"select-ports": [
"Ethernet*"
],
"speed": 1000,
"duplex": "full",
"enabled": true,
"poe": {
"admin-mode": true
}
}
],
"interfaces": [
{
"vlan": {
"id": 1,
"proto": "802.1q"
},
"ethernet": [
{
"select-ports": [
"Ethernet*"
],
"vlan-tag": "un-tagged"
}
],
"role": "upstream",
"name": "mgmt-vlan"
}
],
"switch": {
"loop-detection": {
"instances": [
{
"enabled": true,
"id": 1,
"priority": 32768
}
],
"protocol": "rpvstp"
}
},
"uuid": UUID_PLACEHOLDER
}
}
}
56 changes: 56 additions & 0 deletions utils/kafka_producer/kafka_data/cfg_switch_basic_invalid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"jsonrpc": "2.0",
"method": "configure",
"params": {
"serial": "MAC_PLACEHOLDER",
"uuid": UUID_PLACEHOLDER,
"when": 0,
"config": {
"services": {},
"ethernet": [
{
"select-ports": [
"Ethernet*"
],
"speed": 1000,
"duplex": "full",
"enabled": "YES, TOTALLY ENABLE IT",
"poe": {
"admin-mode": true
}
}
],
"interfaces": [
{
"vlan": {
"id": 1,
"proto": "802.1q"
},
"ethernet": [
{
"select-ports": [
"Ethernet*"
],
"vlan-tag": "un-tagged"
}
],
"role": "upstream",
"name": "mgmt-vlan"
}
],
"switch": {
"loop-detection": {
"instances": [
{
"enabled": true,
"id": 1,
"priority": 32768
}
],
"protocol": "rpvstp"
}
},
"uuid": UUID_PLACEHOLDER
}
}
}

0 comments on commit 3326b12

Please sign in to comment.