To create a pingable model for an IPv6 device, use the create-model REST API endpoint.
The request must include the model type, device target IPv6 address, a descriptive name, and the IPv4 address of the SDC responsible for the discovery at a minimum. Additional attributes can be provided as needed.
Spectrum 24.5.x, 25.4.x
0x10290 (Pingable) for the model type.curl -k -X POST -u "[USER]:[PASSWORD]" \
"https://[SPECTRUM_HOST]:8443/spectrum/restful/model?\
mtypeid=0x10290&attr=0x12d7f&val=[IPV6_ADDRESS]&attr=0x1006e&val=[DEVICE_NAME]&attr=0x12d83&val=[SDC_IPV4_ADDRESS]"
A successful creation will return an XML response containing the Model Handle (mh) of the newly created device.
| Attribute ID | Description | Example Value |
|---|---|---|
| ModelType Name | Pingable - Non-Definable Value |
| Target IPv6 Address | 1234:1Ab:1234:1ab:123:abcd:ab12:ab12 |
0x1006e | Model Name / Hostname | spectrum-test-system |
0x12d83 | SDC IPv4 Address | 10.1.2.3 |