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

sztp: add signed-data-preferred to input #4

Open
glimchb opened this issue Aug 22, 2022 · 1 comment
Open

sztp: add signed-data-preferred to input #4

glimchb opened this issue Aug 22, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@glimchb
Copy link
Member

glimchb commented Aug 22, 2022

example

diff --git a/examples/sztp/config/input.json b/examples/sztp/config/input.json
index 1bdc36c..0236172 100644
--- a/examples/sztp/config/input.json
+++ b/examples/sztp/config/input.json
@@ -3,6 +3,7 @@
       "hw-model" : "model-x",
       "os-name" : "vendor-os",
       "os-version" : "17.3R2.1",
+      "signed-data-preferred": [null],
       "nonce" : "BASE64VALUE="
     }
   }

from https://github.com/YangModels/yang/blob/main/experimental/ietf-extracted-YANG-modules/[email protected]#L79-L90

expect new fields in the response regarding owner in addition to conveyed-information, i.e.:

   <output
     xmlns="urn:ietf:params:xml:ns:yang:ietf-sztp-bootstrap-server">
     <conveyed-information>base64encodedvalue==</conveyed-information>
     <owner-certificate>base64encodedvalue==</owner-certificate>
     <ownership-voucher>base64encodedvalue==</ownership-voucher>
   </output>
glimchb referenced this issue in glimchb/opi-prov-life Aug 23, 2022
I don't see anything changes with this parameter
Openin issue #125 to investigate

Signed-off-by: Boris Glimcher <[email protected]>
glimchb referenced this issue in opiproject/opi-prov-life Aug 23, 2022
I don't see anything changes with this parameter
Openin issue #125 to investigate

Signed-off-by: Boris Glimcher <[email protected]>
@glimchb glimchb transferred this issue from opiproject/opi-prov-life Oct 6, 2022
@glimchb
Copy link
Member Author

glimchb commented Oct 16, 2022

in go:

type AutoGenerated struct {
	IetfSztpBootstrapServerInput struct {
		HwModel             string        `json:"hw-model"`
		OsName              string        `json:"os-name"`
		OsVersion           string        `json:"os-version"`
		SignedDataPreferred []interface{} `json:"signed-data-preferred"`
		Nonce               string        `json:"nonce"`
	} `json:"ietf-sztp-bootstrap-server:input"`
}

@glimchb glimchb added the enhancement New feature or request label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant