API access policy

timmyver
Comes here often

API access policy

We are using a couple of different access policy to secure our ports with NAC.

I want to get the config of the ports through API but it can't see access policy in the list. 

This is the output but the accessPolicyType is open while there is a custom access policy on the port

portId : 25
name :
tags : {}
enabled : True
poeEnabled : True
type : trunk
vlan : 1
voiceVlan :
allowedVlans : all
isolationEnabled : False
rstpEnabled : True
stpGuard : disabled
linkNegotiation : Auto negotiate
portScheduleId :
schedule :
udld : Alert only
linkNegotiationCapabilities : {Auto negotiate, 1 Gigabit full duplex (forced), 100 Megabit (auto), 100 Megabit half duplex (forced)…}
accessPolicyType : Open
daiTrusted : False
profile : @{enabled=False; id=; iname=}
module : @{model=}
mirror : @{mode=Not mirroring traffic}

4 Replies 4
RaphaelL
Kind of a big deal
Kind of a big deal

that's not possible. Trunk ports do not support Access policy. You either have the wrong port or something is wrong with your config.

timmyver
Comes here often

this is the port in console, so it's not a trunk

timmyver_0-1762435493452.png

 

RaphaelL
Kind of a big deal
Kind of a big deal

And you are sure this is port 25 ?

timmyver
Comes here often

Yes, that's the strange thing. The api doesn't match with the gui, or real live.

Or i'm questioning the wrong api.  

Get notified when there are additional replies to this discussion.