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

Geo vision - set network gateway not working correctly #190

Open
vyshali-chitikeshi opened this issue Oct 28, 2022 · 3 comments
Open

Geo vision - set network gateway not working correctly #190

vyshali-chitikeshi opened this issue Oct 28, 2022 · 3 comments
Labels
1-low priority denoting isolated changes bug Something isn't working

Comments

@vyshali-chitikeshi
Copy link
Contributor

🐞 Bug Report

Affected Services [REQUIRED]

The issue is located in: Onvif device service

Is this a regression?

Yes, the previous version in which this bug was not present was: ....

Known issue

Description and Minimal Reproduction [REQUIRED]

Not able to update gateway address using 'set network gateway' api.
Setting default network gateway output gives status code 200. However, gateway address not updated. Verified using get default network gateway.

🔥 Exception or Error





🌍 Your Environment

Deployment Environment:

EdgeX Version [REQUIRED]:

Anything else relevant?

@vyshali-chitikeshi vyshali-chitikeshi added the bug Something isn't working label Oct 28, 2022
@vyshali-chitikeshi
Copy link
Contributor Author

vyshali-chitikeshi commented Jan 11, 2023

hikvision_set_network_gateway_error
Set network default gateway does not work on Hikvision-DS-2DE2A404IW-DE3 camera as well. Gives invalid ip address error (even if try to update with same/existing gateway ip address).
{
"apiVersion": "v2",
"message":"request failed, status code: 500, err: {"apiVersion":"v2","message":"error writing DeviceResourece NetworkDefaultGateway for HIKVISION-DS-2DE2A404IW-DE3-099f4000-4d50-11b4-82c8-c06ded544d95 -> failed to execute write command, <nil> -> failed to execute the request for the function 'SetNetworkDefaultGateway' of web service 'Device'. Onvif error: fault reason: Invalid address, fault detail: set ip error, fault code: env:Sender ter:InvalidArgVal ter:InvalidGatewayAddress","statusCode":500}",
"statusCode": 500
}

attached is api output screenshot on hikvision camera

@vyshali-chitikeshi vyshali-chitikeshi changed the title Geo vision- set network gateway not working correctly Geo vision/Hikvision- set network gateway not working correctly Jan 12, 2023
@vyshali-chitikeshi
Copy link
Contributor Author

Update:
On hikvision camera, setting up network gateway works correctly after changing api body to below

{
"NetworkDefaultGateway": {
"IPv4Address": "192.168.1.2"
}
}

@vyshali-chitikeshi vyshali-chitikeshi changed the title Geo vision/Hikvision- set network gateway not working correctly Geo vision - set network gateway not working correctly Jan 13, 2023
@lenny-goodell lenny-goodell added the 1-low priority denoting isolated changes label Jan 25, 2023
@vyshali-chitikeshi
Copy link
Contributor Author

Issue reproducible with V3 code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-low priority denoting isolated changes bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants