-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnmi: ensure three-phase commit protocol
Previously, only two phases of the commit protocol were utilized, leading to lack of data validation before committing it. This oversight resulted in compromised functionality of the GNMI device simulator, as undesired data was sent. This commit addresses the issue by implementing the complete three-phase commit protocol, as well as fixing the existing invalid data. JIRA: LIGHTY-272 Signed-off-by: Ivan Hrasko <[email protected]> Signed-off-by: tobias.pobocik <[email protected]>
- Loading branch information
Showing
10 changed files
with
159 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
.github/workflows/lighty-rcgnmi-app/simulator/initialConfigJsonData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"openconfig-interfaces:interfaces": { | ||
"interface": [ | ||
{ | ||
"name": "admin", | ||
"config": { | ||
"name": "admin", | ||
"type": "openconfig-if-types:IF_ETHERNET" | ||
} | ||
} | ||
] | ||
}, | ||
"openconfig-system:system": { | ||
"aaa": { | ||
"authentication": { | ||
"admin-user": { | ||
"config": { | ||
"admin-password": "password" | ||
} | ||
}, | ||
"config": { | ||
"authentication-method": [ | ||
"openconfig-aaa-types:LOCAL" | ||
] | ||
} | ||
} | ||
}, | ||
"clock": { | ||
"config": { | ||
"timezone-name": "Europe/Stockholm" | ||
} | ||
}, | ||
"config": { | ||
"hostname": "zz-tri-dev01", | ||
"domain-name": "foo.bar.com", | ||
"login-banner": "This device is for authorized use only", | ||
"motd-banner": "Welcome to Open vSwitch" | ||
}, | ||
"openconfig-openflow:openflow": { | ||
"agent": { | ||
"config": { | ||
"backoff-interval": 5, | ||
"datapath-id": "10:16:3e:00:00:00:00:00", | ||
"failure-mode": "SECURE", | ||
"inactivity-probe": 10, | ||
"max-backoff": 10 | ||
} | ||
}, | ||
"controllers": { | ||
"controller": [ | ||
{ | ||
"config": { | ||
"name": "main" | ||
}, | ||
"connections": { | ||
"connection": [ | ||
{ | ||
"aux-id": 0, | ||
"config": { | ||
"address": "192.0.2.10", | ||
"aux-id": 0, | ||
"port": 6633, | ||
"priority": 1, | ||
"source-interface": "admin", | ||
"transport": "TLS" | ||
} | ||
} | ||
] | ||
}, | ||
"name": "main" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
76 changes: 76 additions & 0 deletions
76
lighty-examples/lighty-gnmi-community-restconf-app/simulator/initialConfigJsonData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"openconfig-interfaces:interfaces": { | ||
"interface": [ | ||
{ | ||
"name": "admin", | ||
"config": { | ||
"name": "admin", | ||
"type": "openconfig-if-types:IF_ETHERNET" | ||
} | ||
} | ||
] | ||
}, | ||
"openconfig-system:system": { | ||
"aaa": { | ||
"authentication": { | ||
"admin-user": { | ||
"config": { | ||
"admin-password": "password" | ||
} | ||
}, | ||
"config": { | ||
"authentication-method": [ | ||
"openconfig-aaa-types:LOCAL" | ||
] | ||
} | ||
} | ||
}, | ||
"clock": { | ||
"config": { | ||
"timezone-name": "Europe/Stockholm" | ||
} | ||
}, | ||
"config": { | ||
"hostname": "zz-tri-dev01", | ||
"domain-name": "foo.bar.com", | ||
"login-banner": "This device is for authorized use only", | ||
"motd-banner": "Welcome to Open vSwitch" | ||
}, | ||
"openconfig-openflow:openflow": { | ||
"agent": { | ||
"config": { | ||
"backoff-interval": 5, | ||
"datapath-id": "00:16:3e:00:00:00:00:00", | ||
"failure-mode": "SECURE", | ||
"inactivity-probe": 10, | ||
"max-backoff": 10 | ||
} | ||
}, | ||
"controllers": { | ||
"controller": [ | ||
{ | ||
"config": { | ||
"name": "main" | ||
}, | ||
"connections": { | ||
"connection": [ | ||
{ | ||
"aux-id": 0, | ||
"config": { | ||
"address": "192.0.2.10", | ||
"aux-id": 0, | ||
"port": 6633, | ||
"priority": 1, | ||
"source-interface": "admin", | ||
"transport": "TLS" | ||
} | ||
} | ||
] | ||
}, | ||
"name": "main" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters