mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-04 10:27:57 +00:00
Change json field name to align with NPWG spec v1.
This commit is contained in:
committed by
Tomofumi Hayashi
parent
0812a8f7d7
commit
e505174d94
@@ -249,7 +249,7 @@ var _ = Describe("multus operations", func() {
|
|||||||
podNet := `[{"name":"net1",
|
podNet := `[{"name":"net1",
|
||||||
"interfaceRequest": "test1"},
|
"interfaceRequest": "test1"},
|
||||||
{"name":"net2",
|
{"name":"net2",
|
||||||
"macRequest": "c2:11:22:33:44:66"}
|
"mac": "c2:11:22:33:44:66"}
|
||||||
]`
|
]`
|
||||||
fakePod := testhelpers.NewFakePod("testpod", podNet)
|
fakePod := testhelpers.NewFakePod("testpod", podNet)
|
||||||
net1 := `{
|
net1 := `{
|
||||||
|
@@ -119,10 +119,10 @@ type NetworkSelectionElement struct {
|
|||||||
Namespace string `json:"namespace,omitempty"`
|
Namespace string `json:"namespace,omitempty"`
|
||||||
// IPRequest contains an optional requested IP address for this network
|
// IPRequest contains an optional requested IP address for this network
|
||||||
// attachment
|
// attachment
|
||||||
IPRequest string `json:"ipRequest,omitempty"`
|
IPRequest string `json:"ips,omitempty"`
|
||||||
// MacRequest contains an optional requested MAC address for this
|
// MacRequest contains an optional requested MAC address for this
|
||||||
// network attachment
|
// network attachment
|
||||||
MacRequest string `json:"macRequest,omitempty"`
|
MacRequest string `json:"mac,omitempty"`
|
||||||
// InterfaceRequest contains an optional requested name for the
|
// InterfaceRequest contains an optional requested name for the
|
||||||
// network interface this attachment will create in the container
|
// network interface this attachment will create in the container
|
||||||
InterfaceRequest string `json:"interfaceRequest,omitempty"`
|
InterfaceRequest string `json:"interfaceRequest,omitempty"`
|
||||||
|
Reference in New Issue
Block a user