Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to odlparent 13.0.7 versions #1672

Merged
merged 3 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/lighty-rcgnmi-app/download_yangs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ wget https://raw.githubusercontent.com/openconfig/public/ed650bd969afc2eb5f66d60
wget https://raw.githubusercontent.com/openconfig/public/ed650bd969afc2eb5f66d60b86b62ffa6fd5fb8e/release/models/system/openconfig-system-terminal.yang -P yangs
wget https://raw.githubusercontent.com/openconfig/public/ed650bd969afc2eb5f66d60b86b62ffa6fd5fb8e/release/models/types/openconfig-types.yang -P yangs
wget https://raw.githubusercontent.com/openconfig/public/ed650bd969afc2eb5f66d60b86b62ffa6fd5fb8e/release/models/types/openconfig-yang-types.yang -P yangs
wget https://raw.githubusercontent.com/openconfig/public/f3349778e3cb3b0987f3ec18acea329ea4bf30e6/release/models/interfaces/openconfig-if-types.yang -P yangs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"gnmi_simulator":{
"targetAddress": "0.0.0.0",
"targetPort": 3333,
"initialStateDataPath": "./simulator/initialJsonData.json",
"initialConfigDataPath": "./simulator/initialJsonData.json",
"initialStateDataPath": "./simulator/initialStateJsonData.json",
"initialConfigDataPath": "./simulator/initialConfigJsonData.json",
"certPath": "./simulator/certs/server.crt",
"certKeyPath": "./simulator/certs/server.key",
"yangsPath": "./yangs",
Expand Down
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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
{
"name": "admin",
"config": {
"name": "admin"
"name": "admin",
"type": "openconfig-if-types:IF_ETHERNET"
}
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,6 @@ assertHttpStatusCode $(curl -X PUT -o /dev/null -s -w "%{http_code} PUT %{url_ef
"openconfig-aaa-types:TACACS_ALL"
]
},
"state": {
"authentication-method": [
"openconfig-aaa-types:RADIUS_ALL"
]
},
"admin-user": {
"config": {
"admin-password": "password"
Expand Down
5 changes: 3 additions & 2 deletions lighty-examples/lighty-gnmi-community-restconf-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ devices over RESTCONF north-bound APIs. In this example the gNMI simulator is st
are performed on this device.

The application, lighty.io gNMI/RESTCONF is pre-prepared with [Openconfig YANG models](yangs).
These models are used by both gNMI application and gNMI device simulator. Device has already preconfigured state/config
data specified in [initialJsonData.json](simulator/initialJsonData.json) JSON file.
These models are used by both gNMI application and gNMI device simulator. Device has already preconfigured state
data specified in [initialStateJsonData.json](simulator/initialStateJsonData.json) JSON file and initial config data in
[initialConfigJsonData.json.json](simulator/initialConfigJsonData.json).
To communicate with gNMI device it is required to use TLS communication with certificates and username and password
authorization.

Expand Down
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"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"targetPort": 10161,
"certPath": "certificates/server.crt",
"certKeyPath": "certificates/server-pkcs8.key",
"initialConfigDataPath": "simulator/initialJsonData.json",
"initialStateDataPath": "simulator/initialJsonData.json",
"initialConfigDataPath": "simulator/initialConfigJsonData.json",
"initialStateDataPath": "simulator/initialStateJsonData.json",
"yangsPath": "../../lighty-models/openconfig-models/src/main/yang",
"username": "admin",
"password": "admin",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ private void modifyDataByPath(final DatastoreType datastoreType, final YangInsta
tx.merge(path, node);
}
final DOMStoreThreePhaseCommitCohort tpcc = tx.ready();
tpcc.canCommit().get();
tpcc.preCommit().get();
tpcc.commit().get();
} catch (final ExecutionException exception) {
Expand Down