mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-09-02 01:19:31 +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",
|
||||
"interfaceRequest": "test1"},
|
||||
{"name":"net2",
|
||||
"macRequest": "c2:11:22:33:44:66"}
|
||||
"mac": "c2:11:22:33:44:66"}
|
||||
]`
|
||||
fakePod := testhelpers.NewFakePod("testpod", podNet)
|
||||
net1 := `{
|
||||
|
@@ -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"`
|
||||
|
Reference in New Issue
Block a user