Skip to content

Commit

Permalink
https://telecominfraproject.atlassian.net/browse/WIFI-7831
Browse files Browse the repository at this point in the history
Signed-off-by: stephb9959 <[email protected]>
  • Loading branch information
stephb9959 committed Sep 12, 2023
1 parent 21f8742 commit 8826031
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions openapi/openroaming_globalreach.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ components:
type: string
CSR:
type: string
GlobalReachAcctId:
type: string

GLBLRCertificateInfo:
type: object
Expand Down
2 changes: 2 additions & 0 deletions src/RESTObjects/RESTAPI_ProvObjects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1203,6 +1203,7 @@ namespace OpenWifi::ProvObjects {
field_to_json(Obj, "organization", organization);
field_to_json(Obj, "commonName", commonName);
field_to_json(Obj, "CSR", CSR);
field_to_json(Obj, "GlobalReachAcctId", GlobalReachAcctId);
}

bool GLBLRAccountInfo::from_json(const Poco::JSON::Object::Ptr &Obj) {
Expand All @@ -1215,6 +1216,7 @@ namespace OpenWifi::ProvObjects {
field_from_json(Obj, "organization", organization);
field_from_json(Obj, "commonName", commonName);
field_from_json(Obj, "CSR", CSR);
field_from_json(Obj, "GlobalReachAcctId", GlobalReachAcctId);
return true;
} catch (const Poco::Exception &E) {

Expand Down
1 change: 1 addition & 0 deletions src/RESTObjects/RESTAPI_ProvObjects.h
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@ namespace OpenWifi::ProvObjects {
std::string privateKey;
std::string country, province, city, organization, commonName;
std::string CSR;
std::string GlobalReachAcctId;

void to_json(Poco::JSON::Object &Obj) const;
bool from_json(const Poco::JSON::Object::Ptr &Obj);
Expand Down
5 changes: 4 additions & 1 deletion src/storage/storage_glblraccounts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ namespace OpenWifi {
ORM::Field{"city", ORM::FieldType::FT_TEXT},
ORM::Field{"organization", ORM::FieldType::FT_TEXT},
ORM::Field{"commonName", ORM::FieldType::FT_TEXT},
ORM::Field{"CSR", ORM::FieldType::FT_TEXT}
ORM::Field{"CSR", ORM::FieldType::FT_TEXT},
ORM::Field{"GlobalReachAcctId", ORM::FieldType::FT_TEXT}
};

static ORM::IndexVec GLBLRAccountInfoDB_Indexes{
Expand Down Expand Up @@ -67,6 +68,7 @@ void ORM::DB<OpenWifi::GLBLRAccountsDBRecordType, OpenWifi::ProvObjects::GLBLRAc
Out.organization = In.get<10>();
Out.commonName = In.get<11>();
Out.CSR = In.get<12>();
Out.GlobalReachAcctId = In.get<13>();
}

template <>
Expand All @@ -85,4 +87,5 @@ void ORM::DB<OpenWifi::GLBLRAccountsDBRecordType, OpenWifi::ProvObjects::GLBLRAc
Out.set<10>(In.organization);
Out.set<11>(In.commonName);
Out.set<12>(In.CSR);
Out.set<13>(In.GlobalReachAcctId);
}
1 change: 1 addition & 0 deletions src/storage/storage_glblraccounts.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ namespace OpenWifi {
std::string,
std::string,
std::string,
std::string,
std::string>
GLBLRAccountsDBRecordType;

Expand Down

0 comments on commit 8826031

Please sign in to comment.