Skip to content

Commit

Permalink
fix json
Browse files Browse the repository at this point in the history
  • Loading branch information
dplore committed Oct 3, 2024
1 parent f8e9a32 commit d06803c
Showing 1 changed file with 189 additions and 39 deletions.
228 changes: 189 additions & 39 deletions doc/qos_overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -446,62 +446,213 @@ but it is not included here for simplication.

```json
{
"openconfig-interfaces": [
{
"config": {
"name": "tunnel1_if_name",
"tunnel": {
"config": {
"dst": "tunnel1_outer_ip_dst",
"gre-key": "tunnel1_outer_gre_key",
"src": "tunnel1_outer_ip_src",
"ttl": "tunnel1_outer_ttl"
"openconfig-qos": {
"classifers": [
{
"classifer": "“dest_A”",
"config": {
"name": "“dest_A”"
},
"terms": [
{
"term": null,
"config": {
"id": "match_1_dest_A1"
},
"conditions": {
"next-hop-group": {
"config": {
"name": "nhg_A1"
}
}
},
"actions": {
"config": {
"target-group": "input_dest_A"
}
}
},
"ipv4": {
"addresses": [
{
"address": null,
{
"term": null,
"config": {
"id": "match_1_dest_A2"
},
"conditions": {
"next-hop-group": {
"config": {
"ip": "tunnel1_interface_ipv4",
"prefix-length": "tunnel1_interface_ipv4_prefixlen"
"name": "nhg_A2"
}
}
],
},
"actions": {
"config": {
"target-group": "input_dest_A"
}
}
}
]
},
{
"classifer": "“dest_B”",
"config": {
"name": "“dest_B”"
},
"terms": [
{
"term": null,
"config": {
"mtu": "tunnel1_inner_mtu"
"id": "match_1_dest_B1"
},
"conditions": {
"next-hop-group": {
"config": {
"name": "nhg_B1"
}
}
},
"actions": {
"config": {
"target-group": "input_dest_B"
}
}
},
"ipv6": {
"addresses": [
{
"term": null,
"config": {
"id": "match_1_dest_B2"
},
"conditions": {
"next-hop-group": {
"config": {
"name": "nhg_B2"
}
}
},
"actions": {
"config": {
"target-group": "input_dest_B"
}
}
}
]
}
],
"forwarding-groups": [
{
"forwarding-group": "input_dest_A",
"config": {
"name": "input_dest_A",
"output-queue": "dummy_input_queue_A"
}
},
{
"forwarding-group": "input_dest_B",
"config": {
"name": "input_dest_B",
"output-queue": "dummy_input_queue_B"
}
}
],
"queues": [
{
"queue": null,
"config": {
"name": "dummy_input_queue_A"
}
},
{
"queue": null,
"config": {
"name": "dummy_input_queue_B"
}
}
],
"scheduler-policies": [
{
"scheduler-policy": null,
"config": {
"name": "limit_1Gb"
},
"schedulers": [
{
"scheduler": null,
"config": {
"sequence": 1,
"type": "ONE_RATE_TWO_COLOR"
},
"inputs": [
{
"address": {
"config": {
"ip": "tunnel1_interface_ipv6",
"prefix-length": "tunnel1_interface_ipv6_prefixlen"
}
"input": "my input policer 1Gb",
"config": {
"id": "my input policer 1Gb",
"input-type": "QUEUE",
"queue": "dummy_input_queue_A"
}
}
],
"config": {
"mtu": "tunnel1_inner_mtu"
"one-rate-two-color": {
"config": {
"cir": 1000000000,
"bc": 100000,
"queuing-behavior": "POLICE"
},
"exceed-action": {
"config": {
"drop": true
}
}
}
}
}
]
},
"interface": null,
"name": "tunnel1_if_name"
}
],
"openconfig-qos": {
{
"scheduler-policy": null,
"config": {
"name": "limit_2Gb"
},
"schedulers": [
{
"scheduler": null,
"config": {
"sequence": 1,
"type": "ONE_RATE_TWO_COLOR"
},
"inputs": [
{
"input": "my input policer 2Gb",
"config": {
"id": "my input policer 2Gb",
"input-type": "QUEUE",
"queue": "dummy_input_queue_B"
}
}
],
"one-rate-two-color": {
"config": {
"cir": 2000000000,
"bc": 100000,
"queuing-behavior": "POLICE"
},
"exceed-action": {
"config": {
"drop": true
}
}
}
}
]
}
],
"interfaces": [
{
"interface": null,
"config": {
"interface-id": "PortChannel1.100"
},
"input": {
"classifiers": [
{
"classifier": "dest_A",
"classifier": null,
"config": {
"name": "dest_A",
"type": "IPV4"
Expand All @@ -513,17 +664,17 @@ but it is not included here for simplication.
"name": "limit_group_A_1Gb"
}
}
},
"interface": "PortChannel1.100"
}
},
{
"interface": null,
"config": {
"interface-id": "PortChannel1.200"
},
"input": {
"classifiers": [
{
"classifier": "dest_B",
"classifier": null,
"config": {
"name": "dest_B",
"type": "IPV4"
Expand All @@ -535,8 +686,7 @@ but it is not included here for simplication.
"name": "limit_group_B_1Gb"
}
}
},
"interface": "PortChannel1.200"
}
}
]
}
Expand Down

0 comments on commit d06803c

Please sign in to comment.