Skip to content

Commit 3abfc1a

Browse files
committed
testing routing in Cilium
1 parent 247ccb5 commit 3abfc1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

azure-ipam/ipam.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ func (p *IPAMPlugin) CmdAdd(args *cniSkel.CmdArgs) error {
130130
IP: net.ParseIP(ipNet.Addr().String()),
131131
Mask: net.CIDRMask(ipNet.Bits(), 32), // nolint
132132
}
133+
ipConfig.Gateway = net.ParseIP("10.241.0.1")
133134
var interf int = 1
134135
ipConfig.Interface = &interf
135136
} else {
@@ -142,6 +143,12 @@ func (p *IPAMPlugin) CmdAdd(args *cniSkel.CmdArgs) error {
142143
}
143144
cniResult.IPs[i] = ipConfig
144145
}
146+
cniResult.Interfaces = make([]*types100.Interface, 1)
147+
interface_test := &types100.Interface{
148+
Name: "eth1",
149+
Mac: "00:0D:3A:F7:79:84",
150+
}
151+
cniResult.Interfaces[0] = interface_test
145152

146153
p.logger.Info("Created CNIResult:", zap.Any("result", cniResult))
147154

0 commit comments

Comments
 (0)