Skip to content

Commit

Permalink
Rules updated
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyqg authored Sep 5, 2019
1 parent 95477f5 commit 68ef094
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 35 deletions.
5 changes: 2 additions & 3 deletions sw_rules/s11-cli.input
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mirroring_add 250 5

register_write MyIngress.log2_m 0 18
register_write MyIngress.training_len 0 50
register_write MyIngress.log2_m 0 9
register_write MyIngress.training_len 0 2
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_position 0 1
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
5 changes: 2 additions & 3 deletions sw_rules/s12-cli.input
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mirroring_add 250 6

register_write MyIngress.log2_m 0 18
register_write MyIngress.training_len 0 50
register_write MyIngress.log2_m 0 9
register_write MyIngress.training_len 0 2
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_position 0 1
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
5 changes: 2 additions & 3 deletions sw_rules/s23-cli.input
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mirroring_add 250 2

register_write MyIngress.log2_m 0 18
register_write MyIngress.training_len 0 50
register_write MyIngress.log2_m 0 10
register_write MyIngress.training_len 0 2
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_position 0 0
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
9 changes: 4 additions & 5 deletions sw_rules/s31-cli.input
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mirroring_add 250 1

register_write MyIngress.log2_m 0 9
register_write MyIngress.training_len 0 50
register_write MyIngress.alpha 0 10
register_write MyIngress.k 0 14
register_write MyIngress.device_position 0 0
register_write MyIngress.log2_m 0 6
register_write MyIngress.training_len 0 8
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
9 changes: 4 additions & 5 deletions sw_rules/s32-cli.input
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mirroring_add 250 1

register_write MyIngress.log2_m 0 9
register_write MyIngress.training_len 0 50
register_write MyIngress.alpha 0 10
register_write MyIngress.k 0 14
register_write MyIngress.device_position 0 0
register_write MyIngress.log2_m 0 6
register_write MyIngress.training_len 0 4
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
9 changes: 4 additions & 5 deletions sw_rules/s33-cli.input
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
mirroring_add 250 1
mirroring_add 251 2

register_write MyIngress.log2_m 0 9
register_write MyIngress.training_len 0 50
register_write MyIngress.alpha 0 10
register_write MyIngress.k 0 14
register_write MyIngress.device_position 0 0
register_write MyIngress.log2_m 0 6
register_write MyIngress.training_len 0 8
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
9 changes: 4 additions & 5 deletions sw_rules/s42-cli.input
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
mirroring_add 250 1

register_write MyIngress.log2_m 0 9
register_write MyIngress.training_len 0 50
register_write MyIngress.alpha 0 10
register_write MyIngress.k 0 14
register_write MyIngress.device_position 0 0
register_write MyIngress.log2_m 0 6
register_write MyIngress.training_len 0 4
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_status 0 0

table_clear MyIngress.src_entropy_term
Expand Down
11 changes: 6 additions & 5 deletions sw_rules/s53-cli.input
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
mirroring_add 250 2
mirroring_add 251 3
mirroring_add 252 1

register_write MyIngress.log2_m 0 4
register_write MyIngress.training_len 0 25
register_write MyIngress.alpha 0 5
register_write MyIngress.k 0 7
register_write MyIngress.device_position 0 0
register_write MyIngress.device_status 0 0
register_write MyIngress.training_len 0 8
register_write MyIngress.alpha 0 20
register_write MyIngress.k 0 28
register_write MyIngress.device_status 0 1
register_write MyIngress.ack_port 0 1

table_clear MyIngress.src_entropy_term
table_add MyIngress.src_entropy_term MyIngress.get_entropy_term 0/31 => 0
Expand Down
23 changes: 22 additions & 1 deletion sw_rules/s53-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,16 @@
"session_id": 251
}
},
{
"table": "MyEgress.share_alarm",
"match": {
"meta.key": 2
},
"action_name": "MyEgress.set_session",
"action_params": {
"session_id": 252
}
},
{
"table": "MyEgress.write_mac",
"match": {
Expand Down Expand Up @@ -279,8 +289,19 @@
"action_name": "MyEgress.write_ip_addr",
"action_params": {
"srcAddr": "10.0.53.254",
"dstAddr": "10.0.53.99"
"dstAddr": "10.0.42.254"
}
},
{
"table": "MyEgress.write_ip",
"match": {
"meta.key_write_ip": 2
},
"action_name": "MyEgress.write_ip_addr",
"action_params": {
"srcAddr": "10.0.53.254",
"dstAddr": "10.0.53.99"
}
}
]
}

0 comments on commit 68ef094

Please sign in to comment.