/*
- * Copyright (c) 2015 Dell Inc. and others. All rights reserved.
+ * Copyright © 2015, 2017 Dell Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
package org.opendaylight.netvirt.ipv6service;
-import java.util.Collection;
import java.util.HashMap;
-import java.util.Iterator;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix;
import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.yang.types.rev130715.Uuid;
}
public void removeSelf() {
- Collection<VirtualPort> intfs = interfaces.values();
-
- Iterator itr = intfs.iterator();
- while (itr.hasNext()) {
- VirtualPort intf = (VirtualPort) itr.next();
+ for (VirtualPort intf : interfaces.values()) {
if (intf != null) {
intf.removeSubnetInfo(subnetUUID);
}
if (router != null) {
router.removeSubnet(this);
}
- return;
}
}