Skip to content

Comments

Add disconnect_mac_address Function#27

Open
ddriddle wants to merge 4 commits intomainfrom
issue/24
Open

Add disconnect_mac_address Function#27
ddriddle wants to merge 4 commits intomainfrom
issue/24

Conversation

@ddriddle
Copy link
Contributor

@ddriddle ddriddle commented Sep 3, 2025

Closes #28

@ddriddle ddriddle self-assigned this Sep 3, 2025
@ddriddle ddriddle changed the title Add get_session_ids function Add disconnect_mac_address Function Nov 3, 2025
@edthedev
Copy link
Contributor

edthedev commented Dec 12, 2025

Testing on this is blocked by permissions. Networking is looking into it for us.

@zdc217 zdc217 force-pushed the issue/24 branch 2 times, most recently from bdb0d44 to 8982ed4 Compare January 26, 2026 20:22
@zdc217 zdc217 marked this pull request as ready for review January 26, 2026 20:23
@zdc217
Copy link
Contributor

zdc217 commented Feb 2, 2026

Networking got us partially unblocked. We can now send a disconnect request successfully but it ultimately fails on the Clearpass side because they need to set up a COA for the test devices. Uros and Chuck will look into that and get back to us. However, we do get a 200 OK response with information in the response that indicates that failure. I think there's enough in there to let us do the last bit of coding on our end.

We pushed a change that added async=false to the query string. We found apparently newer documentation that indicated it was required. The documentation available to us before said it was optional. See https://developer.arubanetworks.com/cppm/v6.11.0/reference/sessionactiondisconnectmacbymac_addresspost

TODO:

We'll need to adapt the disconnect_mac_address function in client.py to parse the response. The endpoint doesn't work as we were previously informed. It sends a 200 OK with the following response:

'{"action_id":"async_action_1770069218172","status":"complete","count":1,"count_success":0,"count_failed":1,"count_queue":0,"_links":{"self":{"href":"https:\\/\\/CLEARPASSURLHERE\\/api\\/session-action\\/disconnect%2Fmac%2FMACADDRESS"}}}'

We'll need to parse out the count, success, and fails in order to output something useful to the CSOC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add disconnect_mac_address Function

3 participants