Change json field name to align with NPWG spec v1.

This commit is contained in:
Tomofumi Hayashi
2018-09-05 17:31:09 +09:00
committed by Tomofumi Hayashi
parent 0812a8f7d7
commit e505174d94
2 changed files with 3 additions and 3 deletions

View File

@@ -249,7 +249,7 @@ var _ = Describe("multus operations", func() {
podNet := `[{"name":"net1",
"interfaceRequest": "test1"},
{"name":"net2",
"macRequest": "c2:11:22:33:44:66"}
"mac": "c2:11:22:33:44:66"}
]`
fakePod := testhelpers.NewFakePod("testpod", podNet)
net1 := `{

View File

@@ -119,10 +119,10 @@ type NetworkSelectionElement struct {
Namespace string `json:"namespace,omitempty"`
// IPRequest contains an optional requested IP address for this network
// attachment
IPRequest string `json:"ipRequest,omitempty"`
IPRequest string `json:"ips,omitempty"`
// MacRequest contains an optional requested MAC address for this
// network attachment
MacRequest string `json:"macRequest,omitempty"`
MacRequest string `json:"mac,omitempty"`
// InterfaceRequest contains an optional requested name for the
// network interface this attachment will create in the container
InterfaceRequest string `json:"interfaceRequest,omitempty"`