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

[PFNAC-25] Unregistered devices do not update online status. #14

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

zhangjianing0424
Copy link
Collaborator

No description provided.

@@ -716,6 +716,10 @@ func (rs *RadiusStatements) updateNodeOnlineOfflineOnline(status rfc2866.AcctSta
default:
err = errors.New("Invalid status")
case rfc2866.AcctStatusType_Value_Start, rfc2866.AcctStatusType_Value_InterimUpdate:
isUnreg, _ := rs.IsUnreg(mac.String())
if isUnreg {
return err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err返回的内容是什么?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

err返回的内容是nil,代表无错误发生。return后packetfence会向接入设备发送计费成功的报文。

@chenxu-af chenxu-af merged commit 0ade1a2 into asterfusion:af_14.0 Apr 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants