We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7413ea commit c3e55e4Copy full SHA for c3e55e4
1 file changed
cmd/sdn-cni-plugin/openshift-sdn_linux.go
@@ -193,7 +193,13 @@ func (p *cniPlugin) CmdAdd(args *skel.CmdArgs) error {
193
// add a route to that via the SDN
194
var addrs []netlink.Addr
195
err = hostNS.Do(func(ns.NetNS) error {
196
- parent, err := netlink.LinkByIndex(link.Attrs().ParentIndex)
+ // workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1705686
197
+ parentIndex := link.Attrs().ParentIndex
198
+ if parentIndex == 0 {
199
+ parentIndex = link.Attrs().Index
200
+ }
201
+
202
+ parent, err := netlink.LinkByIndex(parentIndex)
203
if err != nil {
204
return err
205
}
0 commit comments