Refactor netwoek manager#183
Open
MykolaSuperman wants to merge 8 commits intoaosedge:feature_release_9.1from
Open
Refactor netwoek manager#183MykolaSuperman wants to merge 8 commits intoaosedge:feature_release_9.1from
MykolaSuperman wants to merge 8 commits intoaosedge:feature_release_9.1from
Conversation
5bec2da to
b5a14ed
Compare
mlohvynenko
approved these changes
Mar 19, 2026
Member
mlohvynenko
left a comment
There was a problem hiding this comment.
Reviewed-by: Mykhailo Lohvynenko <mykhailo_lohvynenko@epam.com>
al1img
reviewed
Mar 20, 2026
src/common/pbconvert/sm.hpp
Outdated
| * | ||
| * @param src grpc network service data. | ||
| * @param[out] dst Aos network service data. | ||
| * @return Error |
src/common/pbconvert/sm.hpp
Outdated
| * | ||
| * @param src Aos network parameters. | ||
| * @param[out] dst grpc response. | ||
| * @return Error |
src/common/pbconvert/sm.hpp
Outdated
| * | ||
| * @param src Aos instance network parameters. | ||
| * @param[out] dst grpc response. | ||
| * @return Error |
| err = mLauncher.Init(mConfig.mLauncher, mNodeInfoProvider, mSMController, mImageManager, mOCISpec, mUnitConfig, | ||
| mStorageState, mNetworkManager, mSMController, mAlerts, mIAMClient, utils::IsUIDValid, utils::IsGIDValid, | ||
| mDatabase); | ||
| mStorageState, mSMController, mAlerts, mIAMClient, utils::IsUIDValid, utils::IsGIDValid, mDatabase); |
Collaborator
There was a problem hiding this comment.
Unclear commit message. add more info.
|
|
||
| err = mNetworkManager.Init(mDatabase, mCNI, mTrafficMonitor, mNamespaceManager, mNetworkInterfaceManager, | ||
| mCryptoProvider, mNetworkInterfaceManager, mConfig.mWorkingDir.c_str()); | ||
| mCryptoProvider, mNetworkInterfaceManager, mConfig.mWorkingDir.c_str(), mSMClient, nodeInfo->mNodeID.CStr()); |
added 8 commits
March 20, 2026 18:56
- NetworkParameters -> NetworkParams - InstanceNetworkParameters -> InstanceNetworkAllocation - NetworkServiceData -> UpdateItemNetworkParams Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
- Replace old push-model interface with 4 methods matching NetworkService RPCs: GetNodeNetworkParams, AllocateInstanceNetwork, ReleaseInstanceNetwork, ReleaseNodeNetwork - Remove NodeNetworkItf dependency - Add thread safety with mutex - Add DeferRelease rollback in AllocateInstanceNetwork - Inline DNS restart in allocate/release Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
- Implement NetworkService server in SMController - Forward network RPCs to CM NetworkManager - Add NetworkProviderStub for tests Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
- Implement NetworkService client in SMClient - Add GetNodeNetworkParams, AllocateInstanceNetwork, ReleaseInstanceNetwork, ReleaseNodeNetwork RPCs - Add tests and service stub Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
- Add networkConfig and allocatedParams columns to instancenetwork table - Serialize/deserialize InstanceNetworkConfig and InstanceNetworkAllocation as JSON - Add InstanceNetworkInfoRow with FromAos/ToAos conversion - Add DB migration 4 Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
- SetupNetwork: CreateInstanceNetwork + StartInstanceNetwork - Stop: StopInstanceNetwork + ReleaseInstanceNetwork - TODO: ReleaseInstanceNetwork should move to instance removal Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
Signed-off-by: Mykola Solianko <mykola_solianko@epam.com>
b5a14ed to
5558e4e
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.