Git Product home page Git Product logo

pxgrid-api's Issues

ANC anc_apply_endpoint_by_mac_address

Hello,

I am trying to use PXAPI to assign an ANC policy to a mac address with ISE 3.1p5. Everytime I invoke this method I get a NullException in ISE pxGrid logs, and an error 500 in PXAPI:

Traceback (most recent call last):
File "C:\dev\python\ISE\pxgrid\testpx.py", line 10, in
print(api.anc_apply_endpoint_by_mac_address("Quarantine","AA:AA:AA:AA:AA:AA"))
File "C:\dev\env\lib\site-packages\pxapi\pxapi.py", line 403, in anc_apply_endpoint_by_mac_address
return(self.__send_px_api(self.SERVICE_ANC,"applyEndpointByMacAddress",{"policyName":policy,"mac":mac}))
File "C:\dev\env\lib\site-packages\pxapi\pxapi.py", line 159, in __send_px_api
raise Exception(f"API {api} to service {service} failed with code {response.status_code}. Content: {response.text}")
Exception: API applyEndpointByMacAddress to service com.cisco.ise.config.anc failed with code 500. Content: {"message":"java.lang.NullPointerException"}

And in ISE logs:

2023-05-24 08:00:23,777 ERROR [Thread-16][] cisco.cpm.pxgridwebapp.config.RestExceptionHandler -:::::- HTTP API request=uri=/pxgrid/ise/config/anc/applyEndpointByMacAddress;client=10.21.123.243;user=testclient
java.lang.NullPointerException
at com.cisco.ise.anc.utils.MACAddress.validateMac(MACAddress.java:84)
at com.cisco.ise.anc.operation.EndpointOperationManager.performSessionLookup(EndpointOperationManager.java:247)
at com.cisco.ise.anc.operation.EndpointOperationManager.performWithPolicyUpdate(EndpointOperationManager.java:209)
at com.cisco.ise.anc.operation.EndpointOperationManager.performApplyPolicyAndNoWait(EndpointOperationManager.java:99)
at com.cisco.cpm.pxgridwebapp.ise.rest.AncREST.applyEndpointByMacAddress(AncREST.java:269)
at com.cisco.cpm.pxgridwebapp.ise.rest.AncREST$$FastClassBySpringCGLIB$$988ed386.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:61)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692)
at com.cisco.cpm.pxgridwebapp.ise.rest.AncREST$$EnhancerBySpringCGLIB$$697e9178.applyEndpointByMacAddress()
...etc...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.