-
Notifications
You must be signed in to change notification settings - Fork 55
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
Modify for scp #52
base: main
Are you sure you want to change the base?
Modify for scp #52
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @mamie1031 ,
Thanks for the PR!
Please fix the linter error, thanks~
if nfProfile.NfType == models.NfType_SCP && len(nfProfile.Ipv4Addresses) > 0 { | ||
if len(nfProfile.Ipv4Addresses[0]) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two conditions can be merged to one if
.
if nfProfile.NfType == models.NfType_SCP && len(nfProfile.Ipv4Addresses) > 0 { | ||
if len(nfProfile.Ipv4Addresses[0]) > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two conditions can be merged into one if
.
@@ -320,6 +320,10 @@ func (p *Processor) NFDeregisterProcedure(nfInstanceID string) *models.ProblemDe | |||
logger.NfmLog.Warningf("Can not delete NFCertPem file: %v: %v", nfCertPath, removeErr) | |||
} | |||
} | |||
// Set SCP to unable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Set SCP to unable | |
// Set SCP to disable |
ScpIp := nfProfile.Ipv4Addresses[0] | ||
ScpUri := "http://" + ScpIp + ":8000" // default port |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check ScpInfo
in NFProfile.
I have revised my project and the way of merging. If there are any issues, let me know!🙌