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

add talaria stub server to request tr181 config parameters #275

Open
piccione99 opened this issue Feb 24, 2025 · 3 comments
Open

add talaria stub server to request tr181 config parameters #275

piccione99 opened this issue Feb 24, 2025 · 3 comments
Labels
enhancement improvement or small functionality added to an existing feature

Comments

@piccione99
Copy link
Contributor

this stub should be added to the quic main package.

@denopink
Copy link
Contributor

Cool, so we can test the expected xmidt behavior without the need to connect and query via xmidt or webpa (i.e., run a local server instead and connect and query through that instead).

qq, are we looking for an actually xmidt/talaria sim (1-1 behavior) or are we looking for something that looks like talaria but doesn't actually implement talaria's Send WRP to Device - /device/send endpoint API?

@denopink denopink added the enhancement improvement or small functionality added to an existing feature label Feb 24, 2025
@piccione99
Copy link
Contributor Author

we just want to be able to send a wrp message, so it's really just accepting a curl and then sending it to xmidt-agent. Like bare minimum. I was just digging around to see if talaria takes an http query and converts it to a wrp tr181 command message.

@denopink
Copy link
Contributor

Got, it the good news is that Talaria doesn't do or add anything special to the wrp message. So all we have to do is setup a local server (like you pointed out) that'll

  • connect to the device
  • simply accept requests and then unmarshal the body of the request as a wrp message
  • send that wrp message to the device

The curl will be super similar to scytales/talarias, where the payload is the msgpack tr181 object

curl --location --request POST “${host}/api/v2/device” \
--header ‘Content-Type: application/json’ \
--header ‘Accept: application/json’ \
--data-raw ‘{
“msg_type”: 3,
“source”: “dns:super.cereal”,
“dest”: “mac:4ca161000109/mocktr181”,
“partner_ids”: [“comcast”],
“content_type”: “application/msgpack”,
“transaction_uuid”: “705cb7f5-021d-44c2-8a99-29e52e1a4e43”,
“payload”:“eyJjb21tYW5kIjoiR0VUIiwibmFtZXMiOlsiRGV2aWNlLkRldmljZUluZm8uWF9DSVNDT19DT01fRmlybXdhcmVOYW1lIl19”
}’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement improvement or small functionality added to an existing feature
Projects
None yet
Development

No branches or pull requests

2 participants