def populateNIC(self, interface, type_, name): nic = StackOps.nic() nic.set_interface(interface) nic.set_type(type_) nic.set_name(name) return nic