rhtyd commented on pull request #657: URL: https://github.com/apache/cloudstack-primate/pull/657#issuecomment-685444461
@utchoang in the network record if that's an isolated/shared network (or != L2 network) then you can check the `record.cidr` and you can check if the input IP is within the cidr [1][2] [1] https://tech.mybuilder.com/determining-if-an-ipv4-address-is-within-a-cidr-range-in-javascript/ [2] https://stackoverflow.com/questions/46200086/how-to-check-if-a-given-ip-falls-between-a-given-ip-range-using-node-js ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org